X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmisc.h;h=82baa5807b88c2edac488cdee838b149754f8741;hb=f196c1bad8928b502c0ad1abd86c35ab53d3468e;hp=c09d2c6b3125453bbb63c14a3427a1018938c9bc;hpb=c5ec94d0f1b128fc2c691c7231663a345409d5cc;p=stockfish
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