Re:Sorting in C++: 3 times faster than C
by VMG on Saturday March 17, 2012 @08:41AM
(#3716939)
Shouldn't he be using getrusage() instead of gettimeofday() in his timer code (https://gist.github.com/2057981)?
[ Parent
| on HN ]
When writing profiling code (https://github.com/vstefan/Instrum/), I use clock_gettime(CLOCK_MONOTONIC) as it measures elapsed time from an arbitrary reference point.