TimeSync.h 173 B

12345678910111213141516
  1. #pragma once
  2. #include <thread>
  3. class CTimeSync
  4. {
  5. public:
  6. void Start();
  7. void Stop();
  8. private:
  9. void Run();
  10. private:
  11. bool _run;
  12. std::thread _thread;
  13. SOCKET _socket;
  14. };