类
duration
- count
- 内部计数,不一定是值
time_point
system_clock
- now
- 获取当前时间
steady_clock
high_resolution_clock
treat_as_floating_point
duration_values
common_type(duration)
函数
duration_cast
time_point_cast
类型
| type | Representation | Period |
| hours | signed integral type of at least 23 bits | ratio<3600,1> |
| minutes | signed integral type of at least 29 bits | ratio<60,1> |
| seconds | signed integral type of at least 35 bits | ratio<1,1> |
| milliseconds | signed integral type of at least 45 bits | ratio<1,1000> |
| microseconds | signed integral type of at least 55 bits | ratio<1,1000000> |
| nanoseconds | signed integral type of at least 64 bits | ratio<1,1000000000> |
hours
minutes
seconds
milliseconds
microseconds
nanoseconds
使用
声明:本文为原创文章,版权归Aet所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ C++11_第一篇12/01
- ♥ Objective-C 解析plist04/28
- ♥ C++并发编程 _ 内存模型原子操作08/07
- ♥ C++_线程池相关记述02/10
- ♥ Skia总结概述11/15
- ♥ STL_了解05/02