18#ifndef TRINITY_TIMER_H
19#define TRINITY_TIMER_H
26 using namespace std::chrono;
28 static const steady_clock::time_point ApplicationStartTime = steady_clock::now();
30 return ApplicationStartTime;
35 using namespace std::chrono;
43 if (oldMSTime > newMSTime)
44 return (0xFFFFFFFF - oldMSTime) + newMSTime;
46 return newMSTime - oldMSTime;
51 using namespace std::chrono;
std::chrono::steady_clock::time_point TimePoint
time_point shorthand typedefs
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
uint32 getMSTimeDiff(uint32 oldMSTime, uint32 newMSTime)
TimePoint GetApplicationStartTime()
void SetInterval(time_t interval)
time_t GetCurrent() const
time_t GetInterval() const
void SetCurrent(time_t current)
bool Update(const uint32 diff)
PeriodicTimer(int32 period, int32 start_time)
void SetPeriodic(int32 period, int32 start_time)
void TReset(int32 diff, int32 period)
void Update(Milliseconds diff)
void Reset(Milliseconds expiry)
TimeTracker(Milliseconds expiry)
TimeTracker(int32 expiry=0)
Milliseconds GetExpiry() const