X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=82baa5807b88c2edac488cdee838b149754f8741;hp=c09d2c6b3125453bbb63c14a3427a1018938c9bc;hb=45b0aea875860e9f0fe2d0435ee6163906639194;hpb=9a1d5f0f1d8a12a85b198688d4f1d636a146eb7a diff --git a/src/misc.h b/src/misc.h index c09d2c6b..82baa580 100644 --- a/src/misc.h +++ b/src/misc.h @@ -17,7 +17,7 @@ along with this program. If not, see . */ -#if !defined(MISC_H_INCLUDED) +#ifndef MISC_H_INCLUDED #define MISC_H_INCLUDED #include @@ -27,7 +27,6 @@ #include "types.h" extern const std::string engine_info(bool to_uci = false); -extern int cpu_count(); extern void timed_wait(WaitCondition&, Lock&, int); extern void prefetch(char* addr); extern void start_logger(bool b); @@ -46,7 +45,7 @@ struct Log : public std::ofstream { namespace Time { typedef int64_t point; - point now(); + inline point now() { return system_time_to_msec(); } } @@ -66,4 +65,4 @@ std::ostream& operator<<(std::ostream&, SyncCout); #define sync_cout std::cout << io_lock #define sync_endl std::endl << io_unlock -#endif // !defined(MISC_H_INCLUDED) +#endif // #ifndef MISC_H_INCLUDED