Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
|
Helper class for measuring execution time for functions Call ClockStart and ClockEnd at end of execution If getDuration is being called without ClockEnd, it will return elapsed time but continue counting. More...
#include <util.h>
Public Member Functions | |
TimedExecution () | |
implementation of timing functions | |
virtual | ~TimedExecution ()=default |
std::string | getDuration () const |
long long | getDurationMicroSec () const |
Protected Member Functions | |
void | ClockStart () |
void | ClockEnd () |
long long | getDurationSec () const |
long long | getDurationMilliSec () const |
Helper class for measuring execution time for functions Call ClockStart and ClockEnd at end of execution If getDuration is being called without ClockEnd, it will return elapsed time but continue counting.
TimedExecution::TimedExecution | ( | ) |
|
virtualdefault |
std::string TimedExecution::getDuration | ( | ) | const |
Definition at line 47 of file util.cpp.
Referenced by cmd_perft::execute(), and bSearchAlgorithm::SearchBestMove().
long long TimedExecution::getDurationMicroSec | ( | ) | const |
Definition at line 61 of file util.cpp.
Referenced by cmd_perft::execute(), getDuration(), and bel_debug::run_bench().
|
protected |
Definition at line 27 of file util.cpp.
Referenced by bSearchAlgorithm::StartSearch(), and TimedExecution().
|
protected |
Definition at line 37 of file util.cpp.
Referenced by bSearchAlgorithm::StopSearch().
|
protected |
|
protected |
Definition at line 83 of file util.cpp.
Referenced by bSearchAlgorithm::CheckIfAbortingSearch(), getDuration(), bSearchAlgorithm::sendInfoScore(), and bSearchAlgorithm::sendInfoSearching().