How to print out the time?

I have a program that works great, but the only thing that would make it work even better would be if, say, every minute, it printed out the time.

Right now it makes a log file, and in this file, I'd like it if every minute, say, by testing if the second of the system's time is 01 (just so it works every minute) it prints the system clock's time in the log, followed by a new line.

What's the best way to do this? I've looked around a bit and see tons ways of implementing time through C++, so I'm lost by how many ways there are to do this.

As always, thanks for any help. :) If I need to post my program so far, I can, it's only 88 or so lines.
That looks like C... will it still work on C++?
C works in C++ if you include the correct header files.
Topic archived. No new replies allowed.