This section contains classes and functions relating to system info. More...
Classes | |
| class | cpuid |
| A class for easily getting CPU info. More... | |
| struct | termsize |
| A simple struct for storing terminal width and height. More... | |
Functions | |
| core::generator< bool, bool > | interval (double millis) noexcept |
| Create a generator that triggers at regular intervals. | |
| void | sleep (double ms) noexcept |
| Delays program execution temporarily. | |
| termsize | terminal (const std::ostream &stream) noexcept |
| Get the current dimensions of the terminal. | |
This section contains classes and functions relating to system info.
|
noexcept |
Create a generator that triggers at regular intervals.
This generator will yield a dummy value every millis milliseconds. The generator can will run indefinitely by default, but you can limit the number of triggers by using the limit method on the generator.
| millis | The interval in milliseconds between triggers. |
millis milliseconds.
|
noexcept |
Delays program execution temporarily.
This function is meant to be a platform-independent way of allowing the user to put the program to sleep for a little while. Ideally, this could be used to keep the program from taking up too much CPU time when it's not doing anything important.
| ms | the number of milliseconds to wait. |
|
noexcept |
Get the current dimensions of the terminal.
Gets the dimensions of the terminal for a specified stream. E.g. std::cout or std::cerr can be passed to get the respective terminal size for each. Any other stream defaults to 80x24.
| stream | The stream to check terminal size of. |