]> git.sesse.net Git - stockfish/blobdiff - src/misc.h
Rename current_time() to now()
[stockfish] / src / misc.h
index 1241503ffb6f892ecc3d2a0d13b392720cd891b9..02ae8b3890f728a3a6537bb6aebea4ee3f5e4413 100644 (file)
@@ -46,9 +46,9 @@ struct Log : public std::ofstream {
 
 struct Time {
   int64_t msec() const { return time_to_msec(t); }
-  int elapsed() const { return int(current_time().msec() - msec()); }
+  int elapsed() const { return int(now().msec() - msec()); }
 
-  static Time current_time() { Time t; system_time(&t.t); return t; }
+  static Time now() { Time t; system_time(&t.t); return t; }
 
 private:
   sys_time_t t;