rzezeski / libMicro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fallback to clock_gettime() for getnsecs()

rzezeski opened this issue · comments

Linux does not have gethrtime(), reverting to gettimeofday() for benchmark measurements resulting in microsecond resolution. The fallback should instead be POSIX clock_gettime(), which provides nanosecond resolution.