OpenVDB
5.2.0
|
Simple timer for basic profiling. More...
#include <CpuTimer.h>
Public Member Functions | |
CpuTimer () | |
Initiate timer. More... | |
CpuTimer (const std::string &msg) | |
Prints message and re-start timer. More... | |
void | start () |
Start timer. More... | |
void | start (const std::string &msg) |
Print message and re-start timer. More... | |
void | restart (const std::string &msg) |
Stop previous timer, print message and re-start timer. More... | |
double | delta () const |
Return Time diference in milliseconds since construction or start was called. More... | |
void | stop () const |
Print time in milliseconds since construction or start was called. More... | |
Simple timer for basic profiling.
or to time multiple blocks of code
|
inline |
Initiate timer.
|
inline |
Prints message and re-start timer.
|
inline |
Return Time diference in milliseconds since construction or start was called.
|
inline |
Stop previous timer, print message and re-start timer.
|
inline |
Start timer.
|
inline |
Print message and re-start timer.
|
inline |
Print time in milliseconds since construction or start was called.