|
cli11
|
Small wall-clock timing helpers. More...
import std;Classes | |
| class | cli::timer_t |
| Measures elapsed wall-clock time from construction. More... | |
| class | cli::auto_timer_t |
| A timer_t that reports to std::cout when it goes out of scope. More... | |
Functions | |
| auto | cli::operator<< (std::ostream &in, const timer_t &timer) -> std::ostream & |
| Streams a rendered measurement. | |
Small wall-clock timing helpers.
cli::timer_t measures elapsed time from its own construction and renders it through a caller-supplied formatting callable. cli::auto_timer_t is the same thing with a destructor that reports automatically, so timing a scope is a single declaration:
|
export |
Streams a rendered measurement.
| in | The stream to write to. |
| timer | The timer to render. |
in, for chaining.