|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
稳定时钟 更多...
#include <clocks.hpp>
Public 类型 | |
| using | duration = nanoseconds |
| 持续时间类型 | |
| using | rep = duration::rep |
| 数值类型 | |
| using | period = duration::period |
| 时间单位比例 | |
| using | time_point = _NEFORCE time_point<steady_clock> |
| 时间点类型 | |
静态 Public 成员函数 | |
| static time_point | now () noexcept |
| 获取当前时间点 | |
| template<typename Dur> | |
| static system_clock::time_point | to_system (const _NEFORCE time_point< steady_clock, Dur > &tp) |
| 将稳定时钟转为系统时钟 | |
静态 Public 属性 | |
| static constexpr bool | is_steady = true |
| 时钟稳定性标识 | |
|
staticnoexcept |
获取当前时间点
被这些函数引用 ttl_cache< Key, Value >::cleanup(), ttl_cache< Key, Value >::contains(), basic_timer< steady_clock >::expires_after(), lru_cache< Key, Value >::get(), ttl_cache< Key, Value >::get(), idb_connect::get_alive(), atomic_futex< WaiterBit >::load_when_equal_for(), atomic_futex< WaiterBit >::load_when_equal_until(), lru_cache< Key, Value >::put(), ttl_cache< Key, Value >::put(), ttl_cache< Key, Value >::put(), idb_connect::refresh_alive(), lru_cache< Key, Value >::remove_expired(), to_system(), condition_variable::wait_for() , 以及 condition_variable::wait_for().
|
inlinestatic |
将稳定时钟转为系统时钟
| tp | 稳定时钟时间点 |
在文件 clocks.hpp 第 105 行定义.
引用了 now(), system_clock::now(), time_cast() , 以及 to_system().
被这些函数引用 to_system().
|
staticconstexpr |