53 static std::chrono::steady_clock::time_point t_start;
55 static std::chrono::steady_clock::time_point t_end;
58 inline void start() { t_start = std::chrono::steady_clock::now(); }
65 t_end = std::chrono::steady_clock::now();
66 return std::chrono::duration<Real>(t_end - t_start).count();
Real elapsed()
Compute the elapsed time (in second) since last start() call.
void start()
Start the Chrono.
double Real
STK fundamental type of Real values.
The namespace Chrono is an utility namespace for computing elapsed wall-clock time during the executi...
The namespace STK is the main domain space of the Statistical ToolKit project.