Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint64_t GetTime(void) {
- #if defined(_WIN32) || defined(_WIN64)
- static struct _timeb tv;
- _ftime(&tv);
- return(tv.time * 1000 + tv.millitm);
- #else
- static struct timeval tv;
- static struct timezone tz;
- gettimeofday (&tv, &tz);
- return(tv.tv_sec * 1000 + (tv.tv_usec / 1000));
- #endif
- }
Add Comment
Please, Sign In to add comment