35inline std::chrono::steady_clock::time_point
timer()
37 return std::chrono::steady_clock::now();
39inline std::chrono::steady_clock::time_point
now()
41 return std::chrono::steady_clock::now();
44template <
typename DurationType>
47 return std::chrono::duration_cast<std::chrono::nanoseconds>(time_diff)
51template <
typename DurationType>
54 return std::chrono::duration_cast<std::chrono::microseconds>(time_diff)
58template <
typename DurationType>
63 std::chrono::duration_cast<std::chrono::nanoseconds>(time_diff)
67#define TIME(t, call) \
69 auto __now1 = now(); \
71 auto __now2 = now(); \
72 t += nanoseconds(__now2 - __now1); \
long nanoseconds(DurationType time_diff)
long microseconds(DurationType time_diff)
std::chrono::steady_clock::time_point now()
std::chrono::steady_clock::time_point timer()
double seconds(DurationType time_diff)