MicrOS
difftime.c File Reference
#include "../time.h"

Functions

double difftime (time_t end, time_t beginning)
 Return difference between two times. More...
 

Function Documentation

◆ difftime()

double difftime ( time_t  end,
time_t  beginning 
)

Return difference between two times.

Calculates the difference in seconds between beginning and end.

Parameters
endHigher bound of the time interval whose length is calculated.
beginningLower bound of the time interval whose length is calculated. If this describes a time point later than end, the result is negative.
Returns
The result of (end-beginning) in seconds as a floating-point value of type double.