Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 1 | #ifndef CLOCK_H |
2 | #define CLOCK_H | ||||
3 | |||||
4 | #include <chrono> | ||||
5 | |||||
6 | class 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; | ||||
12 | static const bool is_monotonic = false; | ||||
13 | |||||
14 | static time_point now(); | ||||
15 | }; | ||||
16 | |||||
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame^] | 17 | #endif // CLOCK_H |