aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 06cfc73f2..e3d819ffb 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -41,14 +41,14 @@ i32 win32_exec_command_line_app(char *fmt, ...) {
}
-#if 1
+#if defined(DISPLAY_TIMING)
#define INIT_TIMER() u64 start_time, end_time = 0, total_time = 0; start_time = gb_utc_time_now()
#define PRINT_TIMER(section) do { \
u64 diff; \
end_time = gb_utc_time_now(); \
diff = end_time - start_time; \
total_time += diff; \
- gb_printf_err("%s: %lld ms\n", section, diff/1000); \
+ gb_printf_err("%s: %.1f ms\n", section, diff/1000.0f); \
start_time = gb_utc_time_now(); \
} while (0)