|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
稳定时钟 更多...
#include <clocks.hpp>
Public 类型 | |
| using | duration = _MSTL nanoseconds |
| 持续时间类型 | |
| using | rep = duration::rep |
| 数值类型 | |
| using | period = duration::period |
| 时间单位比例 | |
| using | time_point = _MSTL time_point<steady_clock> |
| 时间点类型 | |
静态 Public 成员函数 | |
| static time_point | now () noexcept |
| 获取当前时间点 | |
| template<typename Dur> | |
| static system_clock::time_point | to_system (const _MSTL time_point< steady_clock, Dur > &tp) |
| 将稳定时钟转为系统时钟 | |
静态 Public 属性 | |
| static constexpr bool | is_steady = true |
| 时钟稳定性标识 | |
|
staticnoexcept |
|
inlinestatic |
将稳定时钟转为系统时钟
| tp | 稳定时钟时间点 |
在文件 clocks.hpp 第 107 行定义.
引用了 _MSTL, now(), system_clock::now(), time_cast() , 以及 to_system().
被这些函数引用 to_system().
|
staticconstexpr |