Espacios de nombres
Variantes
Acciones

std::chrono::system_clock

De cppreference.com
< cpp‎ | chrono

 
 
Utilidades de la biblioteca
Escriba apoyo (basic types, RTTI, type traits)
Gestión de memoria dinámica
Gestión de errores
Programa de servicios públicos
Funciones variadic
Fecha y hora
Objetos Function
initializer_list(C++11)
bitset
hash(C++11)
Operadores relacionales
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Pares y tuplas
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(C++11)
Cambiar, hacia adelante y mover
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(C++11)
 
 
std::chrono::system_clock
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
system_clock::now
system_clock::to_time_t
system_clock::from_time_t
 
Defined in header <chrono>
class system_clock;
(desde C++11)
Clase std::chrono::system_clock representa todo el sistema de reloj de pared real de tiempo .
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.
Puede que no sea monótona: en la mayoría de los sistemas, la hora del sistema se puede ajustar en cualquier momento. Es el único C + + reloj que tiene la capacidad de asignar sus puntos de tiempo en tiempo al estilo de C, y, por lo tanto, que se mostrará .
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.
std::chrono::system_clock cumple los requisitos de 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.

Contenido

[editar] Tipos de miembros

Miembro de tipo
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
firmada tipo aritmético que representa el número de garrapatas en la duración del reloj
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
un tipo std::ratio representa el periodo tic-tac del reloj, en 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 duraciones negativas
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
el tipo de punto de tiempo de este reloj, 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 miembros

bool is_steady
[estático]
true si el tiempo entre las garrapatas es constante y llama a valores de retorno now que aumentan monotónicamente
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.

(público miembro constante estática)

[editar] Las funciones miembro

[estático]
devuelve un std::chrono::time_point que representa el punto actual en el tiempo
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.

(miembro estático público función) [edit]
[estático]
Convierte un reloj de sistema punto a tiempo 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.

(miembro estático público función) [edit]
[estático]
std::time_t convierte a un punto de la hora del reloj del 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.

(miembro estático público función) [edit]

[editar] Ver también

reloj monotónico que nunca va a 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.

(clase)
el reloj con el período más corto garrapata disponible
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.

(clase)