diff options
Diffstat (limited to 'src/core/clock.c')
| -rw-r--r-- | src/core/clock.c | 23 |
1 files changed, 23 insertions, 0 deletions
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 <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. +// + +#include "core/nng_impl.h" + +nni_time +nni_clock(void) +{ + return (nni_plat_clock()); +} + + +void +nni_usleep(nni_duration usec) +{ + nni_plat_usleep(usec); +} |
