TrinityCore
IntervalTimer Struct Reference

#include <Timer.h>

Public Member Functions

 IntervalTimer ()
 
void Update (time_t diff)
 
bool Passed ()
 
void Reset ()
 
void SetCurrent (time_t current)
 
void SetInterval (time_t interval)
 
time_t GetInterval () const
 
time_t GetCurrent () const
 

Private Attributes

time_t _interval
 
time_t _current
 

Detailed Description

Definition at line 62 of file Timer.h.

Constructor & Destructor Documentation

◆ IntervalTimer()

IntervalTimer::IntervalTimer ( )
inline

Definition at line 66 of file Timer.h.

Member Function Documentation

◆ GetCurrent()

time_t IntervalTimer::GetCurrent ( ) const
inline

Definition at line 104 of file Timer.h.

+ Here is the caller graph for this function:

◆ GetInterval()

time_t IntervalTimer::GetInterval ( ) const
inline

Definition at line 99 of file Timer.h.

+ Here is the caller graph for this function:

◆ Passed()

bool IntervalTimer::Passed ( )
inline

Definition at line 78 of file Timer.h.

+ Here is the caller graph for this function:

◆ Reset()

void IntervalTimer::Reset ( )
inline

Definition at line 83 of file Timer.h.

+ Here is the caller graph for this function:

◆ SetCurrent()

void IntervalTimer::SetCurrent ( time_t  current)
inline

Definition at line 89 of file Timer.h.

+ Here is the caller graph for this function:

◆ SetInterval()

void IntervalTimer::SetInterval ( time_t  interval)
inline

Definition at line 94 of file Timer.h.

+ Here is the caller graph for this function:

◆ Update()

void IntervalTimer::Update ( time_t  diff)
inline

Definition at line 71 of file Timer.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _current

time_t IntervalTimer::_current
private

Definition at line 112 of file Timer.h.

◆ _interval

time_t IntervalTimer::_interval
private

Definition at line 111 of file Timer.h.


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