Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true) {
- if (++min == 60) {
- min = 0;
- ++hour;
- hour %= 24;
- }
- while (true) {
- if (--min < 0) {
- min = 59;
- if (--hour < 0) {
- hour = 23;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement