This may seem stupid!
Ok I haven't had any luck understanding the time(), and I can't figure out how to set a variable to time zero and let it be updated every sec or quicker in sync with the system clock? Can't I just use
float sometime = 0.0;
time(sometime);
won't this assign a time to this vaiable and update it? I am quite confused as you can see. =)
Windows 98/SE/ME SUCKS!
Deal with it!
if(windows crashes)
run Linux
else
yea right!!
RESIST WINDOWS XP!!!!!!!!!!
RESIST .NET TECH!!!!!!!!!!!
Edited by - MARS_999 on May 17, 2001 7:16:44 PM
May 17, 2001 06:26 PM
Time(0) returns current time (in seconds since some date)... if you say:
int starttime=time(0);
....
int endtime=time(0)-starttime;
u should get the time diffrence in seconds.
int starttime=time(0);
....
int endtime=time(0)-starttime;
u should get the time diffrence in seconds.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement