diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-09-12 08:52:45 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-09-12 17:24:44 +0000 |
commit | ddfdfc23429172b9b5a9626d66d8f4f3b3899ec0 (patch) | |
tree | a4e034488021d87e69abe5a37df90c1d3ace9de8 | |
parent | 12024aeda97b2d24113d05d44e86636cc15a0bf4 (diff) | |
download | serenity-ddfdfc23429172b9b5a9626d66d8f4f3b3899ec0.zip |
Cube: Use ElapsedTimer::start_new()
-rw-r--r-- | Userland/Demos/Cube/Cube.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Demos/Cube/Cube.cpp b/Userland/Demos/Cube/Cube.cpp index 199511caa8..1a4c307c59 100644 --- a/Userland/Demos/Cube/Cube.cpp +++ b/Userland/Demos/Cube/Cube.cpp @@ -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 }, |