News for hackers. Stuff that matters.
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)?
Re:Sorting in C++: 3 times faster than C by psyren on Saturday March 17, 2012 @09:25AM (#3717009)
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.
Re:Sorting in C++: 3 times faster than C by VMG on Saturday March 17, 2012 @02:33PM (#3717745)
...which is still measuring real time, not the time spent by the current process, or am I wrong? (maybe the downvoter can explain)