Advertisement

This may seem stupid!

Started by May 17, 2001 06:16 PM
0 comments, last by MARS_999 23 years, 8 months ago
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
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.

This topic is closed to new replies.

Advertisement