|
Belofte version 2.2.0
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>
Inheritance diagram for TimedExecution:Public Member Functions | |
| TimedExecution () | |
| implementation of timing functions | |
| virtual | ~TimedExecution ()=default |
| std::string | getDuration () const |
| long long | getDurationMicroSec () const |
Static Public Member Functions | |
| static void | sleep_ms (unsigned long ms) |
| Class static function Pause execution for a number of ms. | |
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.
|
explicit |
|
virtualdefault |
| std::string TimedExecution::getDuration | ( | ) | const |
Definition at line 47 of file util.cpp.
Referenced by cmd_perft::execute(), and bSearchAlgorithm::SearchBestMove().
Here is the call graph for this function:
Here is the caller graph for this function:| long long TimedExecution::getDurationMicroSec | ( | ) | const |
Definition at line 61 of file util.cpp.
Referenced by cmd_perft::execute(), getDuration(), and bel_debug::run_bench().
Here is the caller graph for this function:
|
static |
|
protected |
Definition at line 27 of file util.cpp.
Referenced by bSearchAlgorithm::StartSearch(), and TimedExecution().
Here is the caller graph for this function:
|
protected |
Definition at line 37 of file util.cpp.
Referenced by bSearchAlgorithm::StopSearch().
Here is the caller graph for this function:
|
protected |
|
protected |
Definition at line 83 of file util.cpp.
Referenced by bSearchAlgorithm::CheckIfAbortingSearch(), getDuration(), bSearchAlgorithm::sendInfoSearching(), and bSearchAlgorithm::sendInfoSearching().
Here is the caller graph for this function: