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.
 
template<typename Clock >
Clock::time_point GetTime ()
 Current chrono Clock time point.
 
template<>
SystemTimePoint GetTime< std::chrono::system_clock > ()
 
template<>
TimePoint GetTime< std::chrono::steady_clock > ()
 
uint32 GetUptime ()
 Uptime (in secs)
 
tm const * GetDateAndTime ()
 
WowTime const * GetUtcWowTime ()
 
WowTime const * GetWowTime ()
 
void UpdateGameTimers ()
 
template<>
TC_GAME_API SystemTimePoint GetTime< std::chrono::system_clock > ()
 
template<>
TC_GAME_API TimePoint GetTime< std::chrono::steady_clock > ()
 

Function Documentation

◆ GetDateAndTime()

TC_GAME_API tm const * GameTime::GetDateAndTime ( )

Definition at line 96 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetGameTime()

TC_GAME_API time_t GameTime::GetGameTime ( )

Definition at line 52 of file GameTime.cpp.

◆ GetGameTimeMS()

TC_GAME_API uint32 GameTime::GetGameTimeMS ( )

Definition at line 57 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetStartTime()

TC_GAME_API time_t GameTime::GetStartTime ( )

Definition at line 47 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 62 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetTime()

template<typename Clock >
Clock::time_point GameTime::GetTime ( )

Current chrono Clock time point.

Definition at line 73 of file GameTime.cpp.

◆ GetTime< std::chrono::steady_clock >() [1/2]

template<>
TimePoint GameTime::GetTime< std::chrono::steady_clock > ( )

Definition at line 86 of file GameTime.cpp.

+ Here is the call graph for this function:

◆ GetTime< std::chrono::steady_clock >() [2/2]

template<>
TC_GAME_API TimePoint GameTime::GetTime< std::chrono::steady_clock > ( )

Definition at line 86 of file GameTime.cpp.

+ Here is the call graph for this function:

◆ GetTime< std::chrono::system_clock >() [1/2]

template<>
SystemTimePoint GameTime::GetTime< std::chrono::system_clock > ( )

Definition at line 80 of file GameTime.cpp.

+ Here is the call graph for this function:

◆ GetTime< std::chrono::system_clock >() [2/2]

template<>
TC_GAME_API SystemTimePoint GameTime::GetTime< std::chrono::system_clock > ( )

Definition at line 80 of file GameTime.cpp.

+ Here is the call graph for this function:

◆ GetUptime()

TC_GAME_API uint32 GameTime::GetUptime ( )

Uptime (in secs)

Definition at line 91 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetUtcWowTime()

TC_GAME_API WowTime const * GameTime::GetUtcWowTime ( )

Definition at line 101 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ GetWowTime()

TC_GAME_API WowTime const * GameTime::GetWowTime ( )

Definition at line 106 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 67 of file GameTime.cpp.

+ Here is the caller graph for this function:

◆ UpdateGameTimers()

void GameTime::UpdateGameTimers ( )

Definition at line 111 of file GameTime.cpp.

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