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
6
7namespace yaclib_std::chrono {
8
10
12
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
23
24using system_clock = std::chrono::system_clock;
25using steady_clock = std::chrono::steady_clock;
26using 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
std::chrono::steady_clock steady_clock
Definition clock.hpp:25
std::chrono::high_resolution_clock high_resolution_clock
Definition clock.hpp:26
std::chrono::system_clock system_clock
Definition clock.hpp:24