YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
clock.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#if YACLIB_FAULT_CLOCK == 2
4
5
# include <
yaclib/fault/detail/fiber/system_clock.hpp
>
6
7
namespace
yaclib_std::chrono
{
8
9
using
steady_clock
=
yaclib::detail::fiber::SystemClock
;
10
11
using
high_resolution_clock
=
yaclib::detail::fiber::SystemClock
;
12
13
using
system_clock
=
yaclib::detail::fiber::SystemClock
;
14
15
}
// namespace yaclib_std::chrono
16
17
// #elif YACLIB_FAULT_CLOCK == 1 // TODO(myannyax) Implement model time for thread
18
// # error "YACLIB_FAULT=THREAD not implemented yet"
19
#else
20
# include <chrono>
21
22
namespace
yaclib_std::chrono
{
23
24
using
system_clock
= std::chrono::system_clock;
25
using
steady_clock
= std::chrono::steady_clock;
26
using
high_resolution_clock
= std::chrono::high_resolution_clock;
27
28
// TODO(myannyax) Implement, needs ifdef because these from C++20
29
// using utc_clock = std::chrono::utc_clock;
30
// using tai_clock = std::chrono::tai_clock;
31
// using gps_clock = std::chrono::gps_clock;
32
// using file_clock = std::chrono::file_clock;
33
34
}
// namespace yaclib_std::chrono
35
#endif
yaclib_std::chrono
Definition
clock.hpp:22
yaclib_std::chrono::steady_clock
std::chrono::steady_clock steady_clock
Definition
clock.hpp:25
yaclib_std::chrono::high_resolution_clock
std::chrono::high_resolution_clock high_resolution_clock
Definition
clock.hpp:26
yaclib_std::chrono::system_clock
std::chrono::system_clock system_clock
Definition
clock.hpp:24
yaclib::detail::fiber::SystemClock
Definition
system_clock.hpp:9
system_clock.hpp
include
yaclib_std
detail
clock.hpp
Generated by
1.9.8