std::difftime
De cppreference.com
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
Definido en el archivo de encabezado <ctime>
|
||
double difftime( time_t time2, time_t time1 ); |
||
Calcula la diferencia entre dos tiempos naturales como objetos
time_t
(time2 - time1) en cuestión de segundos . Original:
Computes difference between two calendar times as
time_t
objects (time2 - time1) in seconds. 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.
Contenido |
[editar] Parámetros
time1, time2 | - | veces para comparar
Original: times to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
Diferencia entre dos veces en cuestión de segundos
Original:
Difference between two times in seconds
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.
[editar] Ejemplo
Ejecuta este código
Salida:
Wall time passed: 7 s.
[editar] Ver también
(C++11) |
Un intervalo de tiempo. (plantilla de clase) |
Documentación de C para difftime
|