diff --git a/src/clock.cpp b/src/clock.cpp index 48d22ed5..06e452b6 100644 --- a/src/clock.cpp +++ b/src/clock.cpp @@ -234,6 +234,8 @@ uint64_t zmq::clock_t::rdtsc () asm("\tstck\t%0\n" : "=Q" (tsc) : : "cc"); return(tsc); #else - return 0; + struct timespec ts; + clock_gettime(CLOCK_MONOTONIC, &ts); + return (uint64_t)(ts.tv_sec) * 1000000000 + ts.tv_nsec; #endif }