blob: 7d268fd67ded9d391fa4f21c2b5c1efde63fac3d [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// UNSUPPORTED: libcpp-has-no-monotonic-clock
// <chrono>
// steady_clock
// static time_point now();
#include <chrono>
#include <cassert>
int main(int, char**)
{
typedef std::chrono::steady_clock C;
C::time_point t1 = C::now();
C::time_point t2 = C::now();
assert(t2 >= t1);
return 0;
}