104eeddc0SDimitry Andric // -*- C++ -*- 204eeddc0SDimitry Andric //===----------------------------------------------------------------------===// 304eeddc0SDimitry Andric // 404eeddc0SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 504eeddc0SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 604eeddc0SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 704eeddc0SDimitry Andric // 804eeddc0SDimitry Andric //===----------------------------------------------------------------------===// 904eeddc0SDimitry Andric 1004eeddc0SDimitry Andric #ifndef _LIBCPP___CHRONO_STEADY_CLOCK_H 1104eeddc0SDimitry Andric #define _LIBCPP___CHRONO_STEADY_CLOCK_H 1204eeddc0SDimitry Andric 1304eeddc0SDimitry Andric #include <__chrono/duration.h> 1404eeddc0SDimitry Andric #include <__chrono/time_point.h> 1504eeddc0SDimitry Andric #include <__config> 1604eeddc0SDimitry Andric 1704eeddc0SDimitry Andric #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 1804eeddc0SDimitry Andric # pragma GCC system_header 1904eeddc0SDimitry Andric #endif 2004eeddc0SDimitry Andric 2104eeddc0SDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD 2204eeddc0SDimitry Andric 23*cb14a3feSDimitry Andric namespace chrono { 2404eeddc0SDimitry Andric 2504eeddc0SDimitry Andric #ifndef _LIBCPP_HAS_NO_MONOTONIC_CLOCK 26*cb14a3feSDimitry Andric class _LIBCPP_EXPORTED_FROM_ABI steady_clock { 2704eeddc0SDimitry Andric public: 2804eeddc0SDimitry Andric typedef nanoseconds duration; 2904eeddc0SDimitry Andric typedef duration::rep rep; 3004eeddc0SDimitry Andric typedef duration::period period; 3104eeddc0SDimitry Andric typedef chrono::time_point<steady_clock, duration> time_point; 32bdd1243dSDimitry Andric static _LIBCPP_CONSTEXPR_SINCE_CXX14 const bool is_steady = true; 3304eeddc0SDimitry Andric 3404eeddc0SDimitry Andric static time_point now() _NOEXCEPT; 3504eeddc0SDimitry Andric }; 3604eeddc0SDimitry Andric #endif 3704eeddc0SDimitry Andric 3804eeddc0SDimitry Andric } // namespace chrono 3904eeddc0SDimitry Andric 4004eeddc0SDimitry Andric _LIBCPP_END_NAMESPACE_STD 4104eeddc0SDimitry Andric 4204eeddc0SDimitry Andric #endif // _LIBCPP___CHRONO_STEADY_CLOCK_H 43