#pragma once #include <thread> class CTimeSync { public: void Start(); void Stop(); private: void Run(); private: bool _run; std::thread _thread; SOCKET _socket; };