diff options
| author | 2024-12-24 14:38:53 -0500 | |
|---|---|---|
| committer | 2024-12-24 14:38:53 -0500 | |
| commit | 822e754cafdc5a32c80c97ca015cd6f9008329c3 (patch) | |
| tree | aa8831eca4f896928e9c3ba78446ca95762fccac /src/util/timer | |
| parent | dcc43df0a40cbb2126505396cac4db26008d49b1 (diff) | |
| download | libnaunet-822e754cafdc5a32c80c97ca015cd6f9008329c3.tar.gz libnaunet-822e754cafdc5a32c80c97ca015cd6f9008329c3.tar.bz2 libnaunet-822e754cafdc5a32c80c97ca015cd6f9008329c3.zip | |
Rename, cleanup and pass on readability
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/util/timer')
| -rw-r--r-- | src/util/timer/timer.h | 4 | ||||
| -rw-r--r-- | src/util/timer/timer_linux.c | 4 | ||||
| -rw-r--r-- | src/util/timer/timer_windows.c | 4 |
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); |