diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-08 00:23:14 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-08 00:23:14 +0100 |
| commit | c6d02e4778486c350a732105b6413ba1d32a234a (patch) | |
| tree | 5b1dd564dd1e9c96dcf237cc06b3a09fba8854b2 /src/main.cpp | |
| parent | 3d02f8a5fdcd18f08083994a51ac9518fc565f79 (diff) | |
Fix missing `type_info` with manual linear search
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
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) |