1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Demos: Use new format functions.

This commit is contained in:
asynts 2020-10-07 12:21:32 +02:00 committed by Andreas Kling
parent d781f3f6b5
commit 560c52989c
6 changed files with 34 additions and 45 deletions

View file

@ -177,8 +177,8 @@ void Cube::timer_event(Core::TimerEvent&)
}
if ((m_cycles % 50) == 0) {
dbgprintf("%d total cycles. finished 50 in %d ms, avg %d ms\n", m_cycles, m_accumulated_time, m_accumulated_time / 50);
m_stats->set_text(String::format("%d ms", m_accumulated_time / 50));
dbgln("{} total cycles. finished 50 in {} ms, avg {} ms", m_cycles, m_accumulated_time, m_accumulated_time / 50);
m_stats->set_text(String::formatted("{} ms", m_accumulated_time / 50));
m_accumulated_time = 0;
}