summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-12 08:53:10 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-09-12 17:24:44 +0000
commita34ea51ca4d552f012e2bbcdb62a76d692923020 (patch)
tree437550359cf5420784dfdefd13b30fc92ad5be56
parentddfdfc23429172b9b5a9626d66d8f4f3b3899ec0 (diff)
downloadserenity-a34ea51ca4d552f012e2bbcdb62a76d692923020.zip
Fire: Use ElapsedTimer::start_new()
-rw-r--r--Userland/Demos/Fire/Fire.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Demos/Fire/Fire.cpp b/Userland/Demos/Fire/Fire.cpp
index a6c8b651d4..2d2694a68b 100644
--- a/Userland/Demos/Fire/Fire.cpp
+++ b/Userland/Demos/Fire/Fire.cpp
@@ -115,8 +115,7 @@ Fire::~Fire()
void Fire::paint_event(GUI::PaintEvent& event)
{
GUI::Frame::paint_event(event);
- Core::ElapsedTimer timer;
- timer.start();
+ auto timer = Core::ElapsedTimer::start_new();
GUI::Painter painter(*this);
painter.add_clip_rect(event.rect());