From 17a6197819236bc9ca9eb8826bfd3b18e63ddabd Mon Sep 17 00:00:00 2001 From: maruncz Date: Thu, 22 Apr 2021 09:10:50 +0200 Subject: fix formatting --- fixtest/hiclock.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'fixtest/hiclock.c') diff --git a/fixtest/hiclock.c b/fixtest/hiclock.c index 45a268d..5ce58df 100644 --- a/fixtest/hiclock.c +++ b/fixtest/hiclock.c @@ -6,23 +6,23 @@ LONGLONG HICLOCKS_PER_SEC = 0; void hiclock_init() { - LARGE_INTEGER freq; - QueryPerformanceFrequency(&freq); - HICLOCKS_PER_SEC = freq.QuadPart; + LARGE_INTEGER freq; + QueryPerformanceFrequency(&freq); + HICLOCKS_PER_SEC = freq.QuadPart; } #endif hiclock_t hiclock() { #if defined(__unix__) - struct timeval clocks; - gettimeofday(&clocks, NULL); - return ((uint64_t)clocks.tv_sec * 1000000ULL) + clocks.tv_usec; + struct timeval clocks; + gettimeofday(&clocks, NULL); + return ((uint64_t)clocks.tv_sec * 1000000ULL) + clocks.tv_usec; #elif defined(__WIN32) || defined(__WIN64) - LARGE_INTEGER clocks; - QueryPerformanceCounter(&clocks); - return clocks.QuadPart; + LARGE_INTEGER clocks; + QueryPerformanceCounter(&clocks); + return clocks.QuadPart; #else - return clock(); + return clock(); #endif } -- cgit v1.2.3