erk... ok.... well I really have no comprehension of time functions in c++

Could someone point me towards or write an example code?

DETAILS:

A clock that starts at 0:00 and goes to 23:99 and then loops

30 secs between 0:00 and 1:00 etc

Major help

-Gone