[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / time / time.clock / time.clock.steady / now.pass.cpp
blob1d439a39e3fb2d681f5d0e036a53655ed907a2e7
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // UNSUPPORTED: no-monotonic-clock
11 // <chrono>
13 // steady_clock
15 // static time_point now();
17 #include <chrono>
18 #include <cassert>
20 #include "test_macros.h"
22 int main(int, char**)
24 typedef std::chrono::steady_clock C;
25 C::time_point t1 = C::now();
26 C::time_point t2 = C::now();
27 assert(t2 >= t1);
28 // make sure t2 didn't wrap around
29 assert(t2 > std::chrono::time_point<C>());
31 return 0;