]> git.sesse.net Git - stockfish/commitdiff
Remove MSVC debug window hack in bench
authorMarco Costalba <mcostalba@gmail.com>
Sat, 2 Jul 2011 10:52:22 +0000 (11:52 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 2 Jul 2011 10:52:22 +0000 (11:52 +0100)
Interference with profile-build under mingw

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/benchmark.cpp

index df4978709f1e758a96b5b5aeac22c1e6bc67662b..eef27c6a5b0f2f6ae85f81f735f8fa2faac9a78f 100644 (file)
@@ -142,12 +142,5 @@ void benchmark(int argc, char* argv[]) {
   cerr << "\n==============================="
        << "\nTotal time (ms) : " << time
        << "\nNodes searched  : " << totalNodes
-       << "\nNodes/second    : " << (int)(totalNodes / (time / 1000.0)) << endl << endl;
-
-  // MS Visual C++ debug window always unconditionally closes when program
-  // exits, this is bad because we want to read results before.
-  #if (defined(WINDOWS) || defined(WIN32) || defined(WIN64))
-  cerr << "Press any key to exit" << endl;
-  cin >> time;
-  #endif
+       << "\nNodes/second    : " << (int)(totalNodes / (time / 1000.0)) << endl;
 }