Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1.   int ssecond = (int) (time_elapsed / 1000) % 60;
  2.   int mminute =(int) (time_elapsed / (1000 * 60)) % 60;
  3.   int hhour = (int)((time_elapsed / (1000 * 60 * 60)) % 24);
  4.   //  tm.Hour = (Hour + hhour) % 24;
  5.   //  tm.Minute = (Min + mminute) % 60;
  6.   //  tm.Second = (Sec + ssecond) % 60;
  7.   tm.Hour = hhour;
  8.   tm.Minute = mminute;
  9.   tm.Second = ssecond;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement