The manpage claims clock is implemented on top of clock_gettime, so I wouldn't expect them to be very different. clock is very slow for some reason, so I went down a level in my_clock (using clock_gettime) mainly for the profiler. I'll use my_clock in the cpu-time calc.