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 
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;
21     static const bool is_steady =                    false;
22 
23     static time_point now();
24 };
25 
26 #endif  // CLOCK_H
27