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:
parent
4a71c37370
commit
90d807dc1b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user