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.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/core/clock.h (limited to 'src/core/clock.h') diff --git a/src/core/clock.h b/src/core/clock.h new file mode 100644 index 00000000..c46adfbe --- /dev/null +++ b/src/core/clock.h @@ -0,0 +1,19 @@ +// +// 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. +// + +#ifndef CORE_CLOCK_H +#define CORE_CLOCK_H + +#include "core/nng_impl.h" + +extern nni_time nni_clock(void); + +extern void nni_usleep(nni_duration usec); + +#endif // CORE_CLOCK_H \ No newline at end of file -- cgit v1.2.3-70-g09d2