TrinityCore
TimeTracker Struct Reference

#include <Timer.h>

Public Member Functions

 TimeTracker (int32 expiry=0)
 
 TimeTracker (Milliseconds expiry)
 
void Update (int32 diff)
 
void Update (Milliseconds diff)
 
bool Passed () const
 
void Reset (int32 expiry)
 
void Reset (Milliseconds expiry)
 
Milliseconds GetExpiry () const
 

Private Attributes

Milliseconds _expiryTime
 

Detailed Description

Definition at line 115 of file Timer.h.

Constructor & Destructor Documentation

◆ TimeTracker() [1/2]

TimeTracker::TimeTracker ( int32  expiry = 0)
inline

Definition at line 118 of file Timer.h.

◆ TimeTracker() [2/2]

TimeTracker::TimeTracker ( Milliseconds  expiry)
inline

Definition at line 119 of file Timer.h.

Member Function Documentation

◆ GetExpiry()

Milliseconds TimeTracker::GetExpiry ( ) const
inline

Definition at line 146 of file Timer.h.

◆ Passed()

bool TimeTracker::Passed ( ) const
inline

Definition at line 131 of file Timer.h.

+ Here is the caller graph for this function:

◆ Reset() [1/2]

void TimeTracker::Reset ( int32  expiry)
inline

Definition at line 136 of file Timer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Reset() [2/2]

void TimeTracker::Reset ( Milliseconds  expiry)
inline

Definition at line 141 of file Timer.h.

◆ Update() [1/2]

void TimeTracker::Update ( int32  diff)
inline

Definition at line 121 of file Timer.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update() [2/2]

void TimeTracker::Update ( Milliseconds  diff)
inline

Definition at line 126 of file Timer.h.

Member Data Documentation

◆ _expiryTime

Milliseconds TimeTracker::_expiryTime
private

Definition at line 152 of file Timer.h.


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