version 1.3.22.1, 2014/01/14 22:38:58
|
version 1.3.22.2, 2014/01/14 22:49:39
|
Line 286 time_rdtsc(void)
|
Line 286 time_rdtsc(void)
|
#else |
#else |
/* unsupported for this architecture, get time by ordinary way */ |
/* unsupported for this architecture, get time by ordinary way */ |
struct timespec ts = { 0, 0LL }; |
struct timespec ts = { 0, 0LL }; |
uint64_t res; |
|
|
|
clock_gettime(CLOCK_UPTIME_PRECISE, &ts); |
clock_gettime(CLOCK_UPTIME_PRECISE, &ts); |
return ((uint64_t) ts.tv_sec * 1000000000 + ts.tv_nsec); |
return ((uint64_t) ts.tv_sec * 1000000000 + ts.tv_nsec); |