diff options
author | Aki <please@ignore.pl> | 2022-03-30 21:38:27 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-30 21:38:27 +0200 |
commit | e2a9666f356ab0a71ef10113ed0b0b696ddf1075 (patch) | |
tree | e082788590665d9bb341a12d3f09ca183ee9fac3 /NetEx/NetClient.h | |
parent | 5ec69c1f7ce048f16302feaddc76778003bb4d71 (diff) | |
download | starshatter-e2a9666f356ab0a71ef10113ed0b0b696ddf1075.zip starshatter-e2a9666f356ab0a71ef10113ed0b0b696ddf1075.tar.gz starshatter-e2a9666f356ab0a71ef10113ed0b0b696ddf1075.tar.bz2 |
Removed windows header usage in NetClient
Diffstat (limited to 'NetEx/NetClient.h')
-rw-r--r-- | NetEx/NetClient.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/NetEx/NetClient.h b/NetEx/NetClient.h index 5bd7d10..db5543d 100644 --- a/NetEx/NetClient.h +++ b/NetEx/NetClient.h @@ -14,6 +14,7 @@ #ifndef NetClient_h #define NetClient_h +#include <chrono> #include <cstdint> #include "NetAddr.h" @@ -38,13 +39,13 @@ public: Text SendRecv(Text msg); int GetLastError() const { return err; } - std::uint32_t GetTime() const { return delta; } + std::uint32_t GetTime() const; protected: NetAddr addr; NetSock* sock; - std::uint32_t delta; - std::uint32_t time; + std::chrono::high_resolution_clock::duration delta; + std::chrono::high_resolution_clock::time_point time; int err; public: |