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