Parameters
- time2
- time_t object representing the latter of the two times.
- time1
- time_t object representing the earlier of the two times.
Return Value
The difference in seconds (time2-time1) as a floating point double.Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Output:
Please, enter your name: Juan Soulie Hi Juan Soulie. It took you 3.00 seconds to type your name. |
See also
| asctime | Convert tm structure to string (function) |
| gmtime | Convert time_t to tm as UTC time (function) |
| localtime | Convert time_t to tm as local time (function) |
| time | Get current time (function) |
