blob: 6d3b2d06f8e77d271ee6b41e4e33f1e1571ab2c3 [file] [log] [blame]
Howard Hinnant94b2dd02010-08-22 00:59:46 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
Howard Hinnant412dbeb2010-11-16 22:09:02 +00005// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
Howard Hinnant94b2dd02010-08-22 00:59:46 +00007//
8//===----------------------------------------------------------------------===//
9
10// <chrono>
11
12// monotonic_clock
13
14// static time_point now();
15
16#include <chrono>
17#include <cassert>
18
19int main()
20{
21 typedef std::chrono::monotonic_clock C;
22 C::time_point t1 = C::now();
23 C::time_point t2 = C::now();
24 assert(t2 >= t1);
25}