반응형
Notice
Recent Posts
Recent Comments
Link
목록GetTickCount (1)
Brise
GetTickCount on Linux Source code
#ifdef _GNUC_DWORD GetTickCount(void){ struct timespec tp;struct timeval tv; (void)gettimeofday(&tv, 0);tp.tv_sec = tv.tv_sec;tp.tv_nsec = tv.tv_usec*1000; DWORD dwCount = tp.tv_sec * 1000 + tp.tv_nsec/1000000; // Convert to milli seconds return dwCount;}
Linux
2015. 1. 2. 12:17