From 33d38e68090a41206010095d046b47abc913c47f Mon Sep 17 00:00:00 2001 From: 0scar Date: Thu, 8 Feb 2024 09:54:33 +0100 Subject: Fix state init measurement --- src/core/src/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/src/loop.c b/src/core/src/loop.c index a0cb868..094fd98 100644 --- a/src/core/src/loop.c +++ b/src/core/src/loop.c @@ -381,8 +381,8 @@ i32 engine_run(Platform* p, StateType initial_state) { { f64 state_init_time = get_time(); State_init(state, mem); - INFO("Initializing state \"%s\" took %ldms", StateTypeStr[state], - get_time() - state_init_time); + INFO("Initializing state \"%s\" took %.1fms", StateTypeStr[state], + (get_time() - state_init_time) * 1000.0); } f64 time = get_time(); -- cgit v1.3