summaryrefslogtreecommitdiff
path: root/src/util/timer
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/timer')
-rw-r--r--src/util/timer/timer.h4
-rw-r--r--src/util/timer/timer_linux.c4
-rw-r--r--src/util/timer/timer_windows.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/util/timer/timer.h b/src/util/timer/timer.h
index 2bf6b95..cd2daf7 100644
--- a/src/util/timer/timer.h
+++ b/src/util/timer/timer.h
@@ -2,5 +2,5 @@
#include <al/types.h>
-u64 aki_get_timestamp(void);
-f64 aki_get_tick(void);
+u64 nn_get_timestamp(void);
+f64 nn_get_tick(void);
diff --git a/src/util/timer/timer_linux.c b/src/util/timer/timer_linux.c
index d93bfdc..6585f10 100644
--- a/src/util/timer/timer_linux.c
+++ b/src/util/timer/timer_linux.c
@@ -2,14 +2,14 @@
#include "timer.h"
-u64 aki_get_timestamp(void)
+u64 nn_get_timestamp(void)
{
struct timespec spec;
clock_gettime(CLOCK_REALTIME, &spec);
return 1e6 * spec.tv_sec + spec.tv_nsec * 1e-3;
}
-f64 aki_get_tick(void)
+f64 nn_get_tick(void)
{
struct timespec spec;
clock_gettime(CLOCK_MONOTONIC, &spec);
diff --git a/src/util/timer/timer_windows.c b/src/util/timer/timer_windows.c
index edd1297..198cb32 100644
--- a/src/util/timer/timer_windows.c
+++ b/src/util/timer/timer_windows.c
@@ -2,7 +2,7 @@
#include "timer.h"
-f64 aki_get_tick(void)
+f64 nn_get_tick(void)
{
LARGE_INTEGER result;
QueryPerformanceCounter(&result);
@@ -12,7 +12,7 @@ f64 aki_get_tick(void)
// https://stackoverflow.com/a/46024468
static const s64 UNIX_TIME_START = 0x019DB1DED53E8000; // January 1st, 1970 in "ticks"
-u64 aki_get_timestamp(void)
+u64 nn_get_timestamp(void)
{
FILETIME ft;
GetSystemTimePreciseAsFileTime(&ft);