Thread: Alarm
View Single Post
Old 04-04-2003, 08:42 PM   #2 (permalink)
palin
Code Monkey
 
palin's Avatar
 
Join Date: Jan 2003
Posts: 57
palin is on a distinguished road
<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.
palin is offline   Reply With Quote