198760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow//===----------------------------------------------------------------------===//
298760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow//
398760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow//                     The LLVM Compiler Infrastructure
498760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow//
598760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow// This file is dual licensed under the MIT and the University of Illinois Open
698760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow// Source Licenses. See LICENSE.TXT for details.
798760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow//
898760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow//===----------------------------------------------------------------------===//
998760c18f85bafd98dde7a309e1b0e677abd47d8Marshall Clow
10bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#ifndef CLOCK_H
11bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#define CLOCK_H
12bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant
13bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant#include <chrono>
14bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant
15bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnantclass Clock
16bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant{
17bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant    typedef std::chrono::nanoseconds                 duration;
18bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant    typedef duration::rep                            rep;
19bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant    typedef duration::period                         period;
20bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant    typedef std::chrono::time_point<Clock, duration> time_point;
21f8f852138f86e4588916021e1afedfcab25298c0Howard Hinnant    static const bool is_steady =                    false;
22bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant
23bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant    static time_point now();
24bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant};
25bc8d3f97eb5c958007f2713238472e0c1c8fe02Howard Hinnant
26c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant#endif  // CLOCK_H
27