mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Cube: Use ElapsedTimer::start_new()
This commit is contained in:
parent
12024aeda9
commit
ddfdfc2342
|
@ -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…
Reference in a new issue