Marshall Clow | 354d39c | 2014-01-16 16:58:45 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 10 | #ifndef CLOCK_H |
| 11 | #define CLOCK_H |
| 12 | |
| 13 | #include <chrono> |
| 14 | |
| 15 | class Clock |
| 16 | { |
| 17 | typedef std::chrono::nanoseconds duration; |
| 18 | typedef duration::rep rep; |
| 19 | typedef duration::period period; |
| 20 | typedef std::chrono::time_point<Clock, duration> time_point; |
Howard Hinnant | 3dc6455 | 2010-11-20 19:16:30 +0000 | [diff] [blame] | 21 | static const bool is_steady = false; |
Howard Hinnant | 3e51952 | 2010-05-11 19:42:16 +0000 | [diff] [blame] | 22 | |
| 23 | static time_point now(); |
| 24 | }; |
| 25 | |
Howard Hinnant | 94b2dd0 | 2010-08-22 00:59:46 +0000 | [diff] [blame] | 26 | #endif // CLOCK_H |