9 #include <sys/sysinfo.h> 18 LARGE_INTEGER frequency;
20 QueryPerformanceFrequency(&frequency);
21 QueryPerformanceCounter(&time);
25 time.QuadPart /= frequency.QuadPart;
28 return time.QuadPart / 1E6;
32 gettimeofday(&tp, NULL);
34 return (
double)tp.tv_sec + (double)tp.tv_usec / 1E6;
#define YM_INLINE
YM_INLINE is a platform independent macro that forces a function to be inlined.
Definition: ym_attributes.h:31
YM_INLINE double ym_clock_now()
Definition: ym_time.h:15