From 8476ad2e183bb4141495cf0c55b0531061e73f85 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 12 Sep 2021 08:51:13 -0700 Subject: [PATCH] ChessEngine: Use ElapsedTimer::start_new() --- Userland/Services/ChessEngine/ChessEngine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Services/ChessEngine/ChessEngine.cpp b/Userland/Services/ChessEngine/ChessEngine.cpp index 684a4147f5..7183aa6b2d 100644 --- a/Userland/Services/ChessEngine/ChessEngine.cpp +++ b/Userland/Services/ChessEngine/ChessEngine.cpp @@ -36,8 +36,7 @@ void ChessEngine::handle_go(const GoCommand& command) srand(get_random()); - Core::ElapsedTimer elapsed_time; - elapsed_time.start(); + auto elapsed_time = Core::ElapsedTimer::start_new(); MCTSTree mcts(m_board);