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/core/clock.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/core/clock.c (limited to 'src/core/clock.c') diff --git a/src/core/clock.c b/src/core/clock.c new file mode 100644 index 00000000..3e36358a --- /dev/null +++ b/src/core/clock.c @@ -0,0 +1,23 @@ +// +// Copyright 2017 Garrett D'Amore +// +// This software is supplied under the terms of the MIT License, a +// copy of which should be located in the distribution where this +// file was obtained (LICENSE.txt). A copy of the license may also be +// found online at https://opensource.org/licenses/MIT. +// + +#include "core/nng_impl.h" + +nni_time +nni_clock(void) +{ + return (nni_plat_clock()); +} + + +void +nni_usleep(nni_duration usec) +{ + nni_plat_usleep(usec); +} -- cgit v1.2.3-70-g09d2