mac thread_clock implementation