std::difftime
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 <ctime>
|
||
double difftime( time_t time2, time_t time1 ); |
||
Calcula diferença entre duas horas de calendário como objetos
time_t
(time2 - time1) em 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.
Índice |
[editar] Parâmetros
time1, time2 | - | vezes 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
Diferença entre duas vezes no segundo
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] Exemplo
Saída:
Wall time passed: 7 s.
[editar] Veja também
(C++11) |
um intervalo de tempo Original: a time interval The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (modelo de classe) |
Documentação C para difftime
|