Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void keepTime(int hrs, int mins, int secs)
- {
- hrs = 0;
- mins = 0;
- secs = 0;
- Timer t = new Timer();
- for (secs=0 ; secs >61 ; secs++)
- if (secs >59)
- {
- mins++;
- secs =0;
- }
- else if (mins >59)
- {
- hrs++;
- mins = 0;
- }
- else if (hrs >23)
- hrs=0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement