1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: no-monotonic-clock
15 // static time_point now();
20 #include "test_macros.h"
24 typedef std::chrono::steady_clock C
;
25 C::time_point t1
= C::now();
26 C::time_point t2
= C::now();
28 // make sure t2 didn't wrap around
29 assert(t2
> std::chrono::time_point
<C
>());