-
Time Increments?
Hi,
I want to increment the time i got from the system and print that on the screen. How would i do taht?? I have this so far:
time_t ct;
struct tm * timeinfo;
time(&ct);
timeinfo = localtime(&ct);
say time info is something like: "today 12:00:00" and i want to
print out 12:02:05 (increment by 2 minutes and five seconds)
How would i do so?
Ryan
-
This is probably overkill, but you could take a look at a SimpleTime class I wrote. (I'll try and post the code on that page when I get to it, until then you can download it.)