minutes seconds program

i am making a program that calculates the time left of an event ,
the problem is i cannot like the minutes with the seconds?

how can i make this ?
example the total number is 45 minutes

when 12 minutes and 45 seconds is completed, i want to print that 32 minutes and 15 seconds left

thank you
You could use time() to get the time before the event, and compare the current time against that reference time in the timed section of code.
Topic archived. No new replies allowed.