32 bool m_isEnded =
false;
33 #if defined(CHRONO_MISSING)
34 struct timeval execution_start;
35 struct timeval execution_end;
37 std::chrono::high_resolution_clock::time_point execution_start;
38 std::chrono::high_resolution_clock::time_point execution_end;
49 std::pair<std::string, std::string>
decompose(std::string
const& src,
50 std::string
const& delim);
52 std::string
alltrim(std::string s, std::string
const& delim =
" ");
57 std::string
const& findstr);
59 std::string
const& findstr,
unsigned long const nOffSet = 0);
int_fast16_t bScore
used to return id of move in movelist
Helper class for measuring execution time for functions Call ClockStart and ClockEnd at end of execut...
std::string getDuration() const
TimedExecution()
implementation of timing functions
int64_t getDurationSec() const
virtual ~TimedExecution()=default
int64_t getDurationMilliSec() const
long long getDurationMicroSec() const
Allow index mapper for char values of piece into int in 1-12 range to reduce space and easy initialis...
std::string scoreAsStr(bScore const sc)
std::string alltrim(std::string s, std::string const &delim=" ")
trim left and right spaces or delim from string
std::pair< std::string, std::string > decompose(std::string const &src, std::string const &delim)
Split delimited long string into a pair based on delimiter e.g.
int positionParamIndex(stringList const ¶m, std::string const &findstr)
find position in which param has been found
std::vector< std::string > stringList
std::string currentDate()
std::string prettyTime(int64_t const timems)
int positionParamValue(stringList const ¶m, std::string const &findstr, unsigned long const nOffSet=0)
int getRandomRange(int const Range)
bool is_number(std::string const &s)
std::string to_string(long value)
std::to_string not compatible on Mac OS (Apple LLVM version 5.0) provide generic utility function
int getRandomInt(int const nMax)
stringList stringSplit(std::string src, std::string delim)
Split delimited long string into a vector.