1 #ifndef OSL_MILLISECONDS_H
2 #define OSL_MILLISECONDS_H
17 typedef std::chrono::high_resolution_clock
clock;
20 using std::chrono::duration_cast;
21 template <
class Duration>
23 return duration_cast<std::chrono::duration<double>>(duration).count();
25 template <
class Duration>
26 inline long long msec(Duration duration) {
27 return duration_cast<milliseconds>(duration).count();
38 using misc::duration_cast;
43 #endif // OSL_MILLISECONDS_H