abstract clock_gettime(); OSX compatibility