summaryrefslogtreecommitdiffhomepage
path: root/NetEx/NetClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'NetEx/NetClient.h')
-rw-r--r--NetEx/NetClient.h7
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: