TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TimeTracker Struct Reference

#include <Timer.h>

Public Member Functions

 TimeTracker (time_t expiry)
 
void Update (time_t diff)
 
bool Passed () const
 
void Reset (time_t interval)
 
time_t GetExpiry () const
 

Private Attributes

time_t i_expiryTime
 

Constructor & Destructor Documentation

TimeTracker::TimeTracker ( time_t  expiry)
inline
105  : i_expiryTime(expiry)
106  {
107  }
time_t i_expiryTime
Definition: Timer.h:131

Member Function Documentation

time_t TimeTracker::GetExpiry ( ) const
inline
125  {
126  return i_expiryTime;
127  }
time_t i_expiryTime
Definition: Timer.h:131
bool TimeTracker::Passed ( ) const
inline
115  {
116  return i_expiryTime <= 0;
117  }
time_t i_expiryTime
Definition: Timer.h:131

+ Here is the caller graph for this function:

void TimeTracker::Reset ( time_t  interval)
inline
120  {
121  i_expiryTime = interval;
122  }
time_t i_expiryTime
Definition: Timer.h:131

+ Here is the caller graph for this function:

void TimeTracker::Update ( time_t  diff)
inline
110  {
111  i_expiryTime -= diff;
112  }
time_t i_expiryTime
Definition: Timer.h:131

+ Here is the caller graph for this function:

Member Data Documentation

time_t TimeTracker::i_expiryTime
private

The documentation for this struct was generated from the following file: