X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc.cpp;h=7df4287a3203df480b706672be1552493a35b627;hb=8725494966f91af42c77d2f81d2c8a7fe1864316;hp=daafd3fb650cbd009cee475402474f2786d43871;hpb=99c9cae5865575c03a3eeea4ee6ea54ec8d59b18;p=stockfish
diff --git a/src/misc.cpp b/src/misc.cpp
index daafd3fb..7df4287a 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -17,7 +17,6 @@
along with this program. If not, see .
*/
-#include
#include
#include
#include
@@ -27,7 +26,6 @@
#include "thread.h"
using namespace std;
-using namespace std::chrono;
namespace {
@@ -125,13 +123,6 @@ const string engine_info(bool to_uci) {
}
-/// Convert system time to milliseconds. That's all we need.
-
-Time::point Time::now() {
- return duration_cast(steady_clock::now().time_since_epoch()).count();
-}
-
-
/// Debug functions used mainly to collect run-time statistics
void dbg_hit_on(bool b) { ++hits[0]; if (b) ++hits[1]; }
@@ -155,7 +146,7 @@ void dbg_print() {
std::ostream& operator<<(std::ostream& os, SyncCout sc) {
- static std::mutex m;
+ static Mutex m;
if (sc == IO_LOCK)
m.lock();