|
<time.h> has time functions in it
on Linux/Unix there is a function called
time( time_t* __timer);
if you call it like so time(NULL) it will return the number of seconds since some date in the 70s since I assume you only wish to use the actual time elasped between a start point and another point. obviously just get a start value then you can compare it with repeated calls.
Hope this helps.
|