Sunday, 24 April 2011

How to convert Seconds into minutes

for example

70 second = 1 minute and 10 second


double progress = ...... ;
int minutes = floor(progress/60);
int seconds = trunc(progress - minutes * 60);

No comments:

Post a Comment