summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
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_