blob: ec99f26dd3fe81b4aeec2f695a9d789313930d64 [file] [log] [blame]
Howard Hinnant3e519522010-05-11 19:42:16 +00001#ifndef CLOCK_H
2#define CLOCK_H
3
4#include <chrono>
5
6class Clock
7{
8 typedef std::chrono::nanoseconds duration;
9 typedef duration::rep rep;
10 typedef duration::period period;
11 typedef std::chrono::time_point<Clock, duration> time_point;
Howard Hinnant3dc64552010-11-20 19:16:30 +000012 static const bool is_steady = false;
Howard Hinnant3e519522010-05-11 19:42:16 +000013
14 static time_point now();
15};
16
Howard Hinnant94b2dd02010-08-22 00:59:46 +000017#endif // CLOCK_H