diff --git a/src/misc.h b/src/misc.h index f12ae6c0..9d878b4e 100644 --- a/src/misc.h +++ b/src/misc.h @@ -141,26 +141,4 @@ namespace WinProcGroup void bindThisThread(size_t idx); } -/////////////////////////////////////////////////////////////////////////////// - -using TimePoint = std::chrono::milliseconds::rep; // A value in milliseconds - -static_assert(sizeof(TimePoint) == sizeof(int64_t), "TimePoint should be 64 bits"); - -inline uint64_t rand64() -{ - return static_cast(rand()) ^ - (static_cast(rand()) << 15) ^ - (static_cast(rand()) << 30) ^ - (static_cast(rand()) << 45) ^ - (static_cast(rand()) << 60); -} - -inline uint64_t rand56() -{ - return rand64() << 8; -} - -void start_logger(const std::string &fname); - #endif // #ifndef MISC_H_INCLUDED \ No newline at end of file