31 #if __cplusplus >= 201103L
33 using namespace std::chrono;
38 void now() { t = system_clock::now(); };
41 system_clock::time_point t;
47 return double(duration_cast<microseconds>(t1.t - t0.t).count()) * 1.0e-6;
56 void now() { t = std::clock(); };
65 return double(t1.t - t0.t) / CLOCKS_PER_SEC;
void now()
Definition: timer.hpp:56
Timer()
Definition: timer.hpp:55
double operator-(Timer &t1, Timer &t0)
Definition: timer.hpp:64