techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rw-r--r--app.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/app.c b/app.c
index 851b179..c1010d4 100644
--- a/app.c
+++ b/app.c
@@ -49,6 +49,8 @@ app_exit(void) {
static void
app_loop(void) {
app.run = !WindowShouldClose();
+ f64 frame_start = GetTime();
+
entity_system_update();
/* this is some hypothetical bullshit, probably will change */
@@ -77,6 +79,8 @@ app_loop(void) {
}
editor_draw_ui();
+
+ app.frame_time_ms = (GetTime() - frame_start) * 1000.0f;
EndDrawing();
}