21 #include "hx3d/utils/chronometer.hpp" 28 end = std::chrono::system_clock::now();
29 return std::chrono::duration_cast<std::chrono::nanoseconds>(end - begin).count();
33 return tick() / 1000000.f;
41 begin = std::chrono::system_clock::now();
float tickAsSeconds()
Get the elapsed time as seconds.
float tickAsMillis()
Get the elapsed time as milliseconds.
void reset()
Reset the chronometer.
Chronometer()
Create and start a chronometer.
long tick()
Get the elapsed time as nanoseconds.