File indexing completed on 2026-05-03 08:13:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef _LIBCPP___CXX03___CHRONO_STEADY_CLOCK_H
0011 #define _LIBCPP___CXX03___CHRONO_STEADY_CLOCK_H
0012
0013 #include <__cxx03/__chrono/duration.h>
0014 #include <__cxx03/__chrono/time_point.h>
0015 #include <__cxx03/__config>
0016
0017 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0018 # pragma GCC system_header
0019 #endif
0020
0021 _LIBCPP_BEGIN_NAMESPACE_STD
0022
0023 namespace chrono {
0024
0025 #ifndef _LIBCPP_HAS_NO_MONOTONIC_CLOCK
0026 class _LIBCPP_EXPORTED_FROM_ABI steady_clock {
0027 public:
0028 typedef nanoseconds duration;
0029 typedef duration::rep rep;
0030 typedef duration::period period;
0031 typedef chrono::time_point<steady_clock, duration> time_point;
0032 static _LIBCPP_CONSTEXPR_SINCE_CXX14 const bool is_steady = true;
0033
0034 static time_point now() _NOEXCEPT;
0035 };
0036 #endif
0037
0038 }
0039
0040 _LIBCPP_END_NAMESPACE_STD
0041
0042 #endif