Tweak performance message to include frame interval

This commit is contained in:
Camden Dixie O'Brien 2025-01-04 02:12:22 +00:00
parent a8e2c8d89a
commit 6d01f8cc3f

View File

@ -81,8 +81,8 @@ int main(int argc, char *argv[])
printf( printf(
VT100_CLEAR VT100_CURSORTOPLEFT VT100_CLEAR VT100_CURSORTOPLEFT
"evt\t%10.3f μs\nupdate\t%10.3f μs\nrender\t" "evt\t%10.3f μs\nupdate\t%10.3f μs\nrender\t"
"%10.3f μs\ntotal\t%10.3f μs (%05.2f%%)\n", "%10.3f μs\ntotal\t%10.3f μs (%.2f%% of %.3f ms)\n",
evt, update, render, total, total_pc); evt, update, render, total, total_pc, 1000 * interval);
} }
++frame; ++frame;
#endif #endif