std::chrono::system_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 system_clock; |
(desde C++11) | |
Classe
std::chrono::system_clock
representa o todo o sistema de relógio de parede em tempo real. Original:
Class
std::chrono::system_clock
represents the system-wide real time wall 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.
Pode não ser monotónica: na maioria dos sistemas, o tempo do sistema pode ser ajustada em qualquer momento. É o único relógio de C + + que tem a capacidade para mapear os seus pontos de tempo ao estilo C, tempo e, portanto, a ser exibida.
Original:
It may not be monotonic: on most systems, the system time can be adjusted at any moment. It is the only C++ clock that has the ability to map its time points to C-style time, and, therefore, to be displayed.
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::system_clock
cumpre os requisitos da TrivialClock
. Original:
std::chrono::system_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
|
assinado tipo de aritmética que representa o número de carrapatos na duração do relógio
Original: signed 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 de std::ratio representa o período tique-taque do relógio, em segundos
Original: an 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>, capaz de representar durações negativos
Original: std::chrono::duration<rep, period>, capable of representing negative durations The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
time_point
|
o tipo de ponto este relógio do tempo, std::chrono::time_point<system_clock>
Original: the type of this clock's time point, std::chrono::time_point<system_clock> The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[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] |
retorna um std::chrono::time_point representando o presente momento Original: returns a std::chrono::time_point representing the current point in time 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) |
[estática] |
converte um sistema de ponto relógio para std::time_t Original: converts a system clock time point to std::time_t 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) |
[estática] |
converte std::time_t a um ponto de tempo do relógio do sistema Original: converts std::time_t to a system clock time point 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) |
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) |
(C++11) |
o relógio com o menor período de carrapato disponível 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. (classe) |