TrinityCore
Loading...
Searching...
No Matches
GameTime Namespace Reference

Functions

time_t GetStartTime ()
 
time_t GetGameTime ()
 
uint32 GetGameTimeMS ()
 
SystemTimePoint GetSystemTime ()
 Current chrono system_clock time point.
 
TimePoint Now ()
 Current chrono steady_clock time point.
 
uint32 GetUptime ()
 Uptime (in secs)
 
WowTime const * GetUtcWowTime ()
 
WowTime const * GetWowTime ()
 
void UpdateGameTimers ()
 

Variables

time_t const StartTime = time(nullptr)
 
time_t GameTime = time(nullptr)
 
uint32 GameMSTime = 0
 
SystemTimePoint GameTimeSystemPoint = SystemTimePoint ::min()
 
TimePoint GameTimeSteadyPoint = TimePoint::min()
 
WowTime UtcWow
 
WowTime Wow
 

Function Documentation

◆ GetGameTime()

TC_GAME_API time_t GameTime::GetGameTime ( )

Definition at line 42 of file GameTime.cpp.

◆ GetGameTimeMS()

TC_GAME_API uint32 GameTime::GetGameTimeMS ( )

Definition at line 47 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetStartTime()

TC_GAME_API time_t GameTime::GetStartTime ( )

Definition at line 37 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetSystemTime()

TC_GAME_API SystemTimePoint GameTime::GetSystemTime ( )

Current chrono system_clock time point.

Definition at line 52 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetUptime()

TC_GAME_API uint32 GameTime::GetUptime ( )

Uptime (in secs)

Definition at line 62 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetUtcWowTime()

TC_GAME_API WowTime const * GameTime::GetUtcWowTime ( )

Definition at line 67 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetWowTime()

TC_GAME_API WowTime const * GameTime::GetWowTime ( )

Definition at line 72 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ Now()

TC_GAME_API TimePoint GameTime::Now ( )

Current chrono steady_clock time point.

Definition at line 57 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ UpdateGameTimers()

void GameTime::UpdateGameTimers ( )

Definition at line 77 of file GameTime.cpp.

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

Variable Documentation

◆ GameMSTime

uint32 GameTime::GameMSTime = 0

Definition at line 29 of file GameTime.cpp.

◆ GameTime

time_t GameTime::GameTime = time(nullptr)

Definition at line 28 of file GameTime.cpp.

◆ GameTimeSteadyPoint

TimePoint GameTime::GameTimeSteadyPoint = TimePoint::min()

Definition at line 32 of file GameTime.cpp.

◆ GameTimeSystemPoint

SystemTimePoint GameTime::GameTimeSystemPoint = SystemTimePoint ::min()

Definition at line 31 of file GameTime.cpp.

◆ StartTime

time_t const GameTime::StartTime = time(nullptr)

Definition at line 26 of file GameTime.cpp.

◆ UtcWow

WowTime GameTime::UtcWow

Definition at line 34 of file GameTime.cpp.

◆ Wow

WowTime GameTime::Wow

Definition at line 35 of file GameTime.cpp.