we're using CLOCK_MONOTONIC on proper POSIX systems, I think you want to use either REALTIME_CLOCK or HIGHRES_CLOCK (or maybe a completely different way to get the time, no idea what the best way is on OSX)