diff options
Diffstat (limited to 'src/platform/windows')
| -rw-r--r-- | src/platform/windows/win_clock.c | 4 | ||||
| -rw-r--r-- | src/platform/windows/win_thread.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/platform/windows/win_clock.c b/src/platform/windows/win_clock.c index 613af4be..fc338fdb 100644 --- a/src/platform/windows/win_clock.c +++ b/src/platform/windows/win_clock.c @@ -13,14 +13,14 @@ #ifdef NNG_PLATFORM_WINDOWS nni_time -nni_plat_clock(void) +nni_clock(void) { // We are limited by the system clock, but that is ok. return (GetTickCount64()); } void -nni_plat_sleep(nni_duration dur) +nni_msleep(nni_duration dur) { uint64_t exp; diff --git a/src/platform/windows/win_thread.c b/src/platform/windows/win_thread.c index c069d3c9..dc9ed12a 100644 --- a/src/platform/windows/win_thread.c +++ b/src/platform/windows/win_thread.c @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -144,7 +144,7 @@ nni_plat_cv_until(nni_plat_cv *cv, nni_time until) DWORD msec; BOOL ok; - now = nni_plat_clock(); + now = nni_clock(); if (now > until) { msec = 0; } else { |
