summaryrefslogtreecommitdiff
path: root/src/util/timer
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-04 13:36:54 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-04 13:36:54 -0400
commit9e63fb59e7b8506183172869ea44b68cdec29be5 (patch)
treea47f51121275477b3ce93b1d2b82ea1f342d68ed /src/util/timer
parenta320ee672ccf52297dc509b25ed263f165709b31 (diff)
downloadlibnaunet-9e63fb59e7b8506183172869ea44b68cdec29be5.tar.gz
libnaunet-9e63fb59e7b8506183172869ea44b68cdec29be5.tar.bz2
libnaunet-9e63fb59e7b8506183172869ea44b68cdec29be5.zip
Tons of changes
Mainly for things that came up in other projects. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/util/timer')
-rw-r--r--src/util/timer/timer_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/timer/timer_windows.c b/src/util/timer/timer_windows.c
index 37a8fd8..007efed 100644
--- a/src/util/timer/timer_windows.c
+++ b/src/util/timer/timer_windows.c
@@ -8,7 +8,7 @@ f64 aki_get_tick(void)
{
LARGE_INTEGER result;
QueryPerformanceCounter(&result);
- return (result.QuadPart/(f64)performance_frequency.QuadPart);
+ return result.QuadPart / (f64)performance_frequency.QuadPart;
}
static SYSTEMTIME unix_epoch = {
@@ -35,5 +35,5 @@ u64 aki_get_timestamp(void)
.LowPart = result1.dwLowDateTime,
.HighPart = result1.dwHighDateTime
};
- return (li1.QuadPart - li0.QuadPart) / 10;
+ return (li1.QuadPart - li0.QuadPart) / 10L;
}