]> git.sesse.net Git - stockfish/blobdiff - src/misc.h
Contempt factor: use DrawValue also in case of stealmates
[stockfish] / src / misc.h
index 02ae8b3890f728a3a6537bb6aebea4ee3f5e4413..9650f06eb3c88a2623e9824ca48e569ed8ece46f 100644 (file)
@@ -44,15 +44,10 @@ struct Log : public std::ofstream {
 };
 
 
-struct Time {
-  int64_t msec() const { return time_to_msec(t); }
-  int elapsed() const { return int(now().msec() - msec()); }
-
-  static Time now() { Time t; system_time(&t.t); return t; }
-
-private:
-  sys_time_t t;
-};
+namespace Time {
+  typedef int64_t point;
+  point now();
+}
 
 
 template<class Entry, int Size>