X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=9650f06eb3c88a2623e9824ca48e569ed8ece46f;hp=1241503ffb6f892ecc3d2a0d13b392720cd891b9;hb=e4a0482e43a5af1e4ef3f60b5fb0326c6e786527;hpb=831f91b859c43a5fa895ef0c955516ec8b7a8212 diff --git a/src/misc.h b/src/misc.h index 1241503f..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(current_time().msec() - msec()); } - - static Time current_time() { Time t; system_time(&t.t); return t; } - -private: - sys_time_t t; -}; +namespace Time { + typedef int64_t point; + point now(); +} template