mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
Cube: Use ElapsedTimer::start_new()
This commit is contained in:
parent
12024aeda9
commit
ddfdfc2342
Notes:
sideshowbarker
2024-07-18 04:06:48 +09:00
Author: https://github.com/bgianfo
Commit: ddfdfc2342
Pull-request: https://github.com/SerenityOS/serenity/pull/9999
Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 1 additions and 2 deletions
|
@ -83,8 +83,7 @@ void Cube::paint_event(GUI::PaintEvent& event)
|
|||
|
||||
void Cube::timer_event(Core::TimerEvent&)
|
||||
{
|
||||
Core::ElapsedTimer timer;
|
||||
timer.start();
|
||||
auto timer = Core::ElapsedTimer::start_new();
|
||||
|
||||
const FloatVector3 vertices[8] {
|
||||
{ -1, -1, -1 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue