|
farm-ng-core
|
Stopwatch class for creating multiple, optionally concurrent, timers. More...
#include <stopwatch.h>
Classes | |
| struct | StopwatchStats |
| Container for statistics on stopwatch timers. More... | |
Public Member Functions | |
| void | start (std::string str) |
| Start a new, named timer. More... | |
| double | stop (std::string str) |
| Stops the named timer and returns the duration. More... | |
| std::map< std::string, StopwatchStats > | getStats () |
| Return container of stopwatch timer statistics. More... | |
| void | print () |
| Prints statistics of stopwatch timers. More... | |
Static Public Member Functions | |
| static StopwatchSingleton & | getInstance () |
| Returns an instance of the stopwatch timer. More... | |
Stopwatch class for creating multiple, optionally concurrent, timers.
|
inlinestatic |
Returns an instance of the stopwatch timer.
|
inline |
Return container of stopwatch timer statistics.
|
inline |
Prints statistics of stopwatch timers.
|
inline |
Start a new, named timer.
|
inline |
Stops the named timer and returns the duration.