SPH
|
Timer that reports the measured duration when being destroyed. More...
#include <Profiler.h>
Public Member Functions | |
ScopedTimer (const std::string &name, const OnScopeEnds &callback) | |
~ScopedTimer () | |
void | stop () |
void | resume () |
void | next (const std::string &newName) |
Timer that reports the measured duration when being destroyed.
If measured scope is executed by multiple thread at once, the total time is equal to the sum of all per-thread times.
Definition at line 22 of file Profiler.h.
|
inline |
Creates a scoped time.
name | User-defined name of the timer. |
callback | Function called when the timer goes out of scoped. The timer passes its name and elapsed time as parameters of the function. |
Definition at line 35 of file Profiler.h.
|
inline |
Definition at line 39 of file Profiler.h.
|
inline |
Definition at line 51 of file Profiler.h.
|
inline |
Definition at line 47 of file Profiler.h.
|
inline |
Definition at line 43 of file Profiler.h.