X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.cpp;h=c7e428036840f849a660b70eb548e5ba366f7a63;hp=2e1060d5082aa6ef4abf487f5b9cf07b9c931062;hb=aa2de53a83ca5423c8c8007abf71f9afdf589d93;hpb=24e6ed907b9896ab12b85896732ec422a6b7f8b7 diff --git a/src/misc.cpp b/src/misc.cpp index 2e1060d5..c7e42803 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -58,7 +58,7 @@ using namespace std; /// Version number. If this is left empty, the current date (in the format /// YYMMDD) is used as a version number. -static const string EngineVersion = ""; +static const string EngineVersion = "2.0"; static const string AppName = "Stockfish"; static const string AppTag = ""; @@ -67,8 +67,8 @@ static const string AppTag = ""; //// Variables //// -uint64_t dbg_cnt0 = 0; -uint64_t dbg_cnt1 = 0; +static uint64_t dbg_cnt0 = 0; +static uint64_t dbg_cnt1 = 0; bool dbg_show_mean = false; bool dbg_show_hit_rate = false; @@ -127,17 +127,6 @@ void dbg_print_mean() { << (float)dbg_cnt1 / (dbg_cnt0 ? dbg_cnt0 : 1) << endl; } -void dbg_print_hit_rate(ofstream& logFile) { - - logFile << "Total " << dbg_cnt0 << " Hit " << dbg_cnt1 - << " hit rate (%) " << (dbg_cnt1*100)/(dbg_cnt0 ? dbg_cnt0 : 1) << endl; -} - -void dbg_print_mean(ofstream& logFile) { - - logFile << "Total " << dbg_cnt0 << " Mean " - << (float)dbg_cnt1 / (dbg_cnt0 ? dbg_cnt0 : 1) << endl; -} /// engine_name() returns the full name of the current Stockfish version. /// This will be either "Stockfish YYMMDD" (where YYMMDD is the date when