Hack around lack of clock_gettime() on Darwin.