From 70348e2d4725c9ec43f51811d290c22c782058ac Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 12 Jan 2017 18:34:58 -0800 Subject: Pull out the posix clock stuff for plat_clock. --- src/platform/posix/posix_clock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/platform') diff --git a/src/platform/posix/posix_clock.c b/src/platform/posix/posix_clock.c index 215f66e6..6b452cbf 100644 --- a/src/platform/posix/posix_clock.c +++ b/src/platform/posix/posix_clock.c @@ -20,7 +20,7 @@ // Use POSIX realtime stuff nni_time -nni_clock(void) +nni_plat_clock(void) { struct timespec ts; nni_time usec; @@ -38,7 +38,7 @@ nni_clock(void) void -nni_usleep(nni_duration usec) +nni_plat_usleep(nni_duration usec) { struct timespec ts; @@ -70,7 +70,7 @@ nni_usleep(nni_duration usec) #include nni_time -nni_clock(void) +nni_plat_clock(void) { nni_time usec; @@ -88,7 +88,7 @@ nni_clock(void) void -nni_usleep(nni_duration usec) +nni_plat_usleep(nni_duration usec) { // So probably there is no nanosleep. We could in theory use // pthread condition variables, but that means doing memory -- cgit v1.2.3-70-g09d2