aboutsummaryrefslogtreecommitdiff
path: root/src/core/clock.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-12 18:34:58 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-12 21:34:23 -0800
commit70348e2d4725c9ec43f51811d290c22c782058ac (patch)
treed85ff38b4cb7d1ae0bbbc6b93f010fe5670181b0 /src/core/clock.h
parentda88419ae8165248621cad26df72a0d91663d50b (diff)
downloadnng-70348e2d4725c9ec43f51811d290c22c782058ac.tar.gz
nng-70348e2d4725c9ec43f51811d290c22c782058ac.tar.bz2
nng-70348e2d4725c9ec43f51811d290c22c782058ac.zip
Pull out the posix clock stuff for plat_clock.
Diffstat (limited to 'src/core/clock.h')
-rw-r--r--src/core/clock.h19
1 files changed, 19 insertions, 0 deletions
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 <garrett@damore.org>
+//
+// 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