time: move to stl's clocks and move timer
This commit is contained in:
parent
0e521788bc
commit
877fb5b93a
43 changed files with 392 additions and 248 deletions
|
|
@ -1,24 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <any>
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
|
||||
#include "../helpers/memory/Memory.hpp"
|
||||
#include "../helpers/time/Time.hpp"
|
||||
|
||||
class CUUIDToken {
|
||||
public:
|
||||
CUUIDToken(const std::string& uuid_, std::any data_, std::chrono::steady_clock::duration expires);
|
||||
CUUIDToken(const std::string& uuid_, std::any data_, Time::steady_dur expires);
|
||||
|
||||
std::string getUUID();
|
||||
|
||||
std::any data;
|
||||
std::any m_data;
|
||||
|
||||
private:
|
||||
std::string uuid;
|
||||
|
||||
std::chrono::steady_clock::time_point expiresAt;
|
||||
std::string m_uuid;
|
||||
Time::steady_tp m_expiresAt;
|
||||
|
||||
friend class CTokenManager;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue