blob: 0c6ebe6f3bb7a0744cb3d6f212e176db295ce43e [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
Howard Hinnant3dc64552010-11-20 19:16:30 +000012// steady_clock
Howard Hinnant94b2dd02010-08-22 00:59:46 +000013
14// static time_point now();
15
16#include <chrono>
17#include <cassert>
18
19int main()
20{
Howard Hinnant3dc64552010-11-20 19:16:30 +000021 typedef std::chrono::steady_clock C;
Howard Hinnant94b2dd02010-08-22 00:59:46 +000022 C::time_point t1 = C::now();
23 C::time_point t2 = C::now();
24 assert(t2 >= t1);
25}