use clock_gettime() path on PIPE_OS_BSD in os_time_get_nano()

committed upstream as 7bea40e56652a1ded4374d92fb340b454fbac475

clock_nanosleep() isn't available yet so the usleep() path stays for
os_time_sleep()
This commit is contained in:
jsg 2018-03-02 05:25:17 +00:00
parent 4a71c37370
commit 90d807dc1b

View File

@ -53,7 +53,7 @@
int64_t
os_time_get_nano(void)
{
#if defined(PIPE_OS_LINUX)
#if defined(PIPE_OS_LINUX) || defined(PIPE_OS_BSD)
struct timespec tv;
clock_gettime(CLOCK_MONOTONIC, &tv);