#include "core/sophiar_manager.h" #include "third_party/static_block.hpp" #include #ifdef BOOST_OS_WINDOWS_AVAILABLE #include #include #endif // BOOST_OS_WINDOWS_AVAILABLE namespace sophiar { boost::asio::io_context global_context; sophiar_manager global_sophiar_manager; #ifdef BOOST_OS_WINDOWS_AVAILABLE static_block { // make windows timer more precise timeBeginPeriod(1); std::atexit([]() { timeEndPeriod(1); }); }; #endif // BOOST_OS_WINDOWS_AVAILABLE }