X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=02ae8b3890f728a3a6537bb6aebea4ee3f5e4413;hp=1241503ffb6f892ecc3d2a0d13b392720cd891b9;hb=5900ab76a05b96f902fd3fc2794670916a7cb0ea;hpb=e6d8e7415220a11c06b9a707fde6f5c7dd27d34b diff --git a/src/misc.h b/src/misc.h index 1241503f..02ae8b38 100644 --- a/src/misc.h +++ b/src/misc.h @@ -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;