std::chrono::high_resolution_clock
Da 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. |
Definido no cabeçalho <chrono>
|
||
class high_resolution_clock; |
(desde C++11) | |
Classe
std::chrono::high_resolution_clock
representa o relógio com o menor período de carrapato disponível no sistema. Pode ser um apelido ou std::chrono::system_clock std::chrono::steady_clock, ou um relógio, uma entidade independente.Original:
Class
std::chrono::high_resolution_clock
represents the clock with the smallest tick period available on the system. It may be an alias of std::chrono::system_clock or std::chrono::steady_clock, or a third, independent clock.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::high_resolution_clock
cumpre os requisitos da TrivialClock
. Original:
std::chrono::high_resolution_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.
Índice |
[editar] Tipos de membro
Tipo de membro
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
|
Tipo de aritmética que representa o número de carrapatos na duração do relógio
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
|
um tipo std::ratio representa o período tique-taque do relógio, em segundos
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> |
[editar] Constantes de membros
bool is_steady [estática] |
true se o tempo entre os carrapatos é constante e as chamadas para os valores now retorno que aumentam de forma monótona Original: true if the time between ticks is constant and calls to now return values that increase monotonically The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (membro estático público constante) |
[editar] Funções de membro
[estática] |
devolve uma std::chrono::time_point que representa o valor actual do relógio Original: returns a std::chrono::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. (função public static membro) |
[editar] Veja também
(C++11) |
tempo de relógio do relógio do sistema à escala em tempo real 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. (classe) |
(C++11) |
relógio monotônico que nunca vai ser ajustado Original: monotonic clock that will never be adjusted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |