Guest User

Untitled

a guest
Apr 20th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. uint64_t GetTime(void) {
  2. #if defined(_WIN32) || defined(_WIN64)
  3. static struct _timeb tv;
  4. _ftime(&tv);
  5. return(tv.time * 1000 + tv.millitm);
  6. #else
  7. static struct timeval tv;
  8. static struct timezone tz;
  9. gettimeofday (&tv, &tz);
  10. return(tv.tv_sec * 1000 + (tv.tv_usec / 1000));
  11. #endif
  12. }
Add Comment
Please, Sign In to add comment