use alternative to clock_gettime on darwin