Next: , Previous: startTime, Up: Times


6.3 elapsedTime

return the time elapsed

Synopsis

     #include <suplib/times.h>
     
     
     
Time *elapsedTime(Time *start);

Parameters

Time *start
the start time from which to determine the elapsed time

Description

elapsedTime determines the difference in time between the current user, system and clock times and either a passed Time structure, or the internal Time structure initialized by startTime (if the passed pointer start is NULL).

Returns

It returns a pointer to an internal Time structure containing the difference in times. This structure is private to elapsedTime and will be overwritten by subsequent calls to it. It returns NULL upon error.

Author

Diab Jerius