Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ssecond = (int) (time_elapsed / 1000) % 60;
- int mminute =(int) (time_elapsed / (1000 * 60)) % 60;
- int hhour = (int)((time_elapsed / (1000 * 60 * 60)) % 24);
- // tm.Hour = (Hour + hhour) % 24;
- // tm.Minute = (Min + mminute) % 60;
- // tm.Second = (Sec + ssecond) % 60;
- tm.Hour = hhour;
- tm.Minute = mminute;
- tm.Second = ssecond;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement