How to determine a second has passed since debugging.

Aug 29, 2014 at 2:43am
I have been reading and editing many functions I found online to practice but to me, it is very difficult concept to understand in c++.

I made progress to enough to know what my next plan is for my homework, which is
making a program that every exact seconds it elapsed since the start of the program, the program run into a loop within a function.

In summary, I would really appreciate a code where it shows every seconds that has passed continuously.
Aug 29, 2014 at 3:32am
In <ctime> there is a function called clock(). It doesn't *exactly* do what you want, but it's prety close and will do what you want.
http://www.cplusplus.com/reference/ctime/clock/
Aug 29, 2014 at 4:09am
thank you, I will read it over and give it a try tonight.

I will update if more help is desperately needed.
Aug 29, 2014 at 4:10am
Topic archived. No new replies allowed.