summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-07-18 13:59:44 -0400
committerpommicket <pommicket@gmail.com>2023-07-19 19:02:27 -0400
commitbe5dab846e38420961a68ff4503a48e2bd8bdf6b (patch)
tree351daf84a8ffdc93939edf554d51a6d90f22ffbc /base.h
parent533345302e16ff8b485cc719d6bf8c1f5d043445 (diff)
multiple font textuers
Diffstat (limited to 'base.h')
-rw-r--r--base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base.h b/base.h
index ed64fe8..9aba28a 100644
--- a/base.h
+++ b/base.h
@@ -168,4 +168,10 @@ static void print(const char *fmt, ...) {
#define debug_println(...)
#endif
+#if PROFILE
+#define PROFILE_TIME(var) double var = time_get_seconds();
+#else
+#define PROFILE_TIME(var)
+#endif
+
#endif // BASE_H_