Clock Timer not converting to minutes correctly

Why not just increment and decrement seconds and then convert the result

++seconds;
....
       sprintf(buffer, "%02d:%02d", seconds/60, seconds%60);
1 Like