Path: blob/main/contrib/llvm-project/libcxx/include/__chrono/steady_clock.h
35262 views
// -*- C++ -*-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-exception6//7//===----------------------------------------------------------------------===//89#ifndef _LIBCPP___CHRONO_STEADY_CLOCK_H10#define _LIBCPP___CHRONO_STEADY_CLOCK_H1112#include <__chrono/duration.h>13#include <__chrono/time_point.h>14#include <__config>1516#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)17# pragma GCC system_header18#endif1920_LIBCPP_BEGIN_NAMESPACE_STD2122namespace chrono {2324#ifndef _LIBCPP_HAS_NO_MONOTONIC_CLOCK25class _LIBCPP_EXPORTED_FROM_ABI steady_clock {26public:27typedef nanoseconds duration;28typedef duration::rep rep;29typedef duration::period period;30typedef chrono::time_point<steady_clock, duration> time_point;31static _LIBCPP_CONSTEXPR_SINCE_CXX14 const bool is_steady = true;3233static time_point now() _NOEXCEPT;34};35#endif3637} // namespace chrono3839_LIBCPP_END_NAMESPACE_STD4041#endif // _LIBCPP___CHRONO_STEADY_CLOCK_H424344