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