diff options
| author | maruncz <marun1@email.cz> | 2021-04-22 09:10:50 +0200 |
|---|---|---|
| committer | maruncz <marun1@email.cz> | 2021-04-22 09:10:50 +0200 |
| commit | 17a6197819236bc9ca9eb8826bfd3b18e63ddabd (patch) | |
| tree | a8680595fd82f9ad406d1f2d5a90c8e623ced1a4 /fixtest/hiclock.c | |
| parent | edcfdea949d0c73ee86738f3211a59baaf722101 (diff) | |
| download | libfixmath-17a6197819236bc9ca9eb8826bfd3b18e63ddabd.tar.gz | |
fix formatting
Diffstat (limited to 'fixtest/hiclock.c')
| -rw-r--r-- | fixtest/hiclock.c | 20 |
1 files changed, 10 insertions, 10 deletions
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
}
|
