aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows/win_clock.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-10 15:02:38 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-10 15:02:38 -0700
commit795aebbee77bb74d8792df96dfe1aa79ec9548fc (patch)
tree58c16424c16b9e71cebdceaee4507ab6608f80da /src/platform/windows/win_clock.c
parentde90f97167d2df6739db47b2c6aad85f06250270 (diff)
downloadnng-795aebbee77bb74d8792df96dfe1aa79ec9548fc.tar.gz
nng-795aebbee77bb74d8792df96dfe1aa79ec9548fc.tar.bz2
nng-795aebbee77bb74d8792df96dfe1aa79ec9548fc.zip
Give up on uncrustify; switch to clang-format.
Diffstat (limited to 'src/platform/windows/win_clock.c')
-rw-r--r--src/platform/windows/win_clock.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/platform/windows/win_clock.c b/src/platform/windows/win_clock.c
index 9064b5e2..5a874a71 100644
--- a/src/platform/windows/win_clock.c
+++ b/src/platform/windows/win_clock.c
@@ -15,16 +15,14 @@ nni_time
nni_plat_clock(void)
{
// We are limited by the system clock, but that is ok.
- return (GetTickCount64()*1000);
+ return (GetTickCount64() * 1000);
}
-
void
nni_plat_usleep(nni_duration dur)
{
uint64_t exp;
-
// Convert duration to msec, rounding up.
dur += 999;
dur /= 1000;
@@ -43,10 +41,9 @@ nni_plat_usleep(nni_duration dur)
}
}
-
#else
// Suppress empty symbols warnings in ranlib.
int nni_win_clock_not_used = 0;
-#endif // PLATFORM_WINDOWS
+#endif // PLATFORM_WINDOWS