blob: c72470c9cc8d394a16a9adf2c0302d33258cc16e [file] [log] [blame]
Marshall Clow354d39c2014-01-16 16:58:45 +00001//===----------------------------------------------------------------------===//
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 Hinnant3e519522010-05-11 19:42:16 +000010#ifndef CLOCK_H
11#define CLOCK_H
12
13#include <chrono>
14
15class 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 Hinnant3dc64552010-11-20 19:16:30 +000021 static const bool is_steady = false;
Howard Hinnant3e519522010-05-11 19:42:16 +000022
23 static time_point now();
24};
25
Howard Hinnant94b2dd02010-08-22 00:59:46 +000026#endif // CLOCK_H