Hacker News new | ask | show | jobs
by amluto 3625 days ago
gettimeofday has nanosecond precision and has whatever resolution the underlying clock has. On most recent machines, the clock is the TSC and you really do get nanoseconds out.