std::chrono::time_point::time_point
来自cppreference.com
< cpp | chrono | time point
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| time_point(); |
(1) | |
| explicit time_point(const std::chrono::duration& d); |
(2) | |
| template <class Duration2> time_point(const time_point<clock, Duration2>& t); |
(3) | |
,构造一个新的
time_point从几个可选的数据源之一原文:
Constructs a new
time_point from one of several optional data sources.1。默认的构造方法,创建一个
time_pointClock的划时代值.原文:
1. Default constructor, creates a
time_point with a value of Clock's epoch.2。构造一个
time_pointClock的划时代加d原文:
2. Constructs a
time_point at Clock's epoch plus d.3。构造一个
time_point转换tduration。此构造仅参与过载的分辨率,如果Duration2是隐式转换为duration.原文:
3. Constructs a
time_point by converting t to duration. This constructor only participates in overload resolution if Duration2 is implicitly convertible to duration.[编辑] 参数
| d | - | 一个
duration复制 |
| t | - | 一个
time_point转换 |
[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 构建新的持续时间 (公共成员函数of std::chrono::duration)
| |