xref: /freebsd/contrib/llvm-project/libcxx/include/__chrono/high_resolution_clock.h (revision cb14a3fe5122c879eae1fb480ed7ce82a699ddb6)
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_HIGH_RESOLUTION_CLOCK_H
1104eeddc0SDimitry Andric #define _LIBCPP___CHRONO_HIGH_RESOLUTION_CLOCK_H
1204eeddc0SDimitry Andric 
1304eeddc0SDimitry Andric #include <__chrono/steady_clock.h>
1404eeddc0SDimitry Andric #include <__chrono/system_clock.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
2604eeddc0SDimitry Andric typedef steady_clock high_resolution_clock;
2704eeddc0SDimitry Andric #else
2804eeddc0SDimitry Andric typedef system_clock high_resolution_clock;
2904eeddc0SDimitry Andric #endif
3004eeddc0SDimitry Andric 
3104eeddc0SDimitry Andric } // namespace chrono
3204eeddc0SDimitry Andric 
3304eeddc0SDimitry Andric _LIBCPP_END_NAMESPACE_STD
3404eeddc0SDimitry Andric 
3504eeddc0SDimitry Andric #endif // _LIBCPP___CHRONO_HIGH_RESOLUTION_CLOCK_H
36