summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-10 01:35:50 +0100
committeraura <nw@moneybot.cc>2026-03-10 01:35:50 +0100
commit8329d42d3e592f4cd42cdfa586e2325ddc76c898 (patch)
treedec7e2a733bfc6b6384936c1f3ed067a42b59bb9 /src/util.h
parent8ae8c85e9d3806cdb726e07f37e1b49484c5c48e (diff)
perf profiler, simplify 2d render, string struct, many small things
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/util.h b/src/util.h
index 32fdb7e..d0e391f 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,7 +1,4 @@
#pragma once
-#include <SDL.h>
-
-#include "SDL_timer.h"
#include "util/color.h"
#include "util/allocator.h"
#include "util/vector.h"
@@ -9,23 +6,8 @@
#include "util/config.h"
#include "util/screen.h"
#include "util/input.h"
+#include "util/time.h"
#include "util/file.h"
+#include "util/profiler.h"
#include "util/thread.h"
-inline U64 u_tick() {
- return (F64)SDL_GetPerformanceCounter() * 10000 / ((F64)SDL_GetPerformanceFrequency() );
-}
-
-inline F32 u_time() {
- return SDL_GetTicks64() / 1000.f;
-}
-
-template < typename T >
-T min( T a, T b ) {
- return a < b? a : b;
-}
-
-template < typename T >
-T max( T a, T b ) {
- return a > b? a : b;
-}