std::chrono::steady_clock
来自cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <chrono>
|
||
| class steady_clock; |
(C++11 起) | |
std::chrono::steady_clock类代表一个单调时钟。该时钟的时间点不能减少,作为物理的时间向前移动。这个时钟是不涉及到墙上时钟时间,和用于测量的时间间隔最好是适合.Original:
Class
std::chrono::steady_clock represents a monotonic clock. The time points of this clock cannot decrease as physical time moves forward. This clock is not related to wall clock time, and is best suitable for measuring intervals.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
std::chrono::steady_clock满足的要求TrivialClock. Original:
std::chrono::steady_clock meets the requirements of TrivialClock. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 会员类型
| 会员类型
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
rep
|
算术类型代表时钟的时间的刻度数
Original: arithmetic type representing the number of ticks in the clock's duration The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
period
|
一个std::ratio类型的滴答的时钟周期,以秒为单位
Original: a std::ratio type representing the tick period of the clock, in seconds The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
duration
|
std::chrono::duration<rep, period> |
time_point
|
std::chrono::time_point<std::chrono::steady_clock> |
[编辑] 会员常数
| bool is_steady [静态的] </ SPAN></div></div>
|
稳定的时钟标志,总是true Original: steady clock flag, always true The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共静态成员常量) |
[编辑] 成员函数
| [静态的] </ SPAN></div></div>
|
返回一个time_point代表时钟的当前值 Original: returns a time_point representing the current value of the clock The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共静态成员函数) |
[编辑] 另请参阅
| (C++11) |
从全系统的实时时钟,挂钟时间 Original: wall clock time from the system-wide realtime clock The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类) |
| (C++11) |
的时钟用最短的剔期 Original: the clock with the shortest tick period available The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (类) |