std::difftime
Da cppreference.com.
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <ctime>
|
||
double difftime( time_t time2, time_t time1 ); |
||
Calcola differenza tra due orari di calendario come oggetti
time_t
(time2 - time1) in pochi secondi. 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.
Indice |
[modifica] Parametri
time1, time2 | - | volte da confrontare
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. |
[modifica] Valore di ritorno
Differenza tra due volte in pochi secondi
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.
[modifica] Esempio
Output:
Wall time passed: 7 s.
[modifica] Vedi anche
(C++11) |
un intervallo di 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. (classe template) |
C documentation for difftime
|