mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
ChessEngine: Use ElapsedTimer::start_new()
This commit is contained in:
parent
f6d179b304
commit
8476ad2e18
Notes:
sideshowbarker
2024-07-18 04:06:56 +09:00
Author: https://github.com/bgianfo
Commit: 8476ad2e18
Pull-request: https://github.com/SerenityOS/serenity/pull/9999
Reviewed-by: https://github.com/awesomekling ✅
1 changed files with 1 additions and 2 deletions
|
@ -36,8 +36,7 @@ void ChessEngine::handle_go(const GoCommand& command)
|
||||||
|
|
||||||
srand(get_random<u32>());
|
srand(get_random<u32>());
|
||||||
|
|
||||||
Core::ElapsedTimer elapsed_time;
|
auto elapsed_time = Core::ElapsedTimer::start_new();
|
||||||
elapsed_time.start();
|
|
||||||
|
|
||||||
MCTSTree mcts(m_board);
|
MCTSTree mcts(m_board);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue