From fd871e6ce9de54f81f00918d4c7e3f3f4336b6d3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 20 Feb 2018 19:41:55 -0800 Subject: Introduce 'porting layer' Public API. This introduces portable primitives for time, random numbers, synchronization primitives, and threading. These are somewhat primitive (least common denominiators), but they can help with writing portable applications, especially our own demo apps. --- src/core/platform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/platform.h b/src/core/platform.h index 73b6785b..cf635f4a 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -145,12 +145,12 @@ extern void nni_plat_thr_fini(nni_plat_thr *); // Clock Support // -// nn_plat_clock returns a number of microseconds since some arbitrary time +// nn_plat_clock returns a number of milliseconds since some arbitrary time // in the past. The values returned by nni_clock must use the same base // as the times used in nni_plat_cond_waituntil. The nni_plat_clock() must -// returnvalues > 0, and must return values smaller than 2^63. (We could relax -// this last constraint, but there is no reason to, and leaves us the option -// of using negative values for other purposes in the future.) +// return values > 0, and must return values smaller than 2^63. (We could +// relax this last constraint, but there is no reason to, and leaves us the +// option of using negative values for other purposes in the future.) extern nni_time nni_plat_clock(void); // nni_plat_sleep sleeps for the specified number of milliseconds (at least). -- cgit v1.2.3-70-g09d2