Core/Time: Rename GetGameTime{System, Steady}Point methods

The names are a bit unhandy. Rename them (shorter but still meaningful).

GetGameTimeSystemPoint() -> GetSystemTime()
GetGameTimeSteadyPoint() -> Now()

Also add 2 new typedefs:

typedef std::chrono::steady_clock::time_point TimePoint;
typedef std::chrono::system_clock::time_point SystemTimePoint;

Closes #25042

(cherry picked from commit 896b68d5c2)
This commit is contained in:
Treeston
2020-07-14 01:35:25 +02:00
committed by Shauren
parent dfc1f08bd8
commit d11c3807b3
28 changed files with 107 additions and 103 deletions

View File

@@ -60,7 +60,7 @@ void WorldSession::HandleQueryTimeOpcode(WorldPackets::Query::QueryTime& /*query
void WorldSession::SendQueryTimeResponse()
{
WorldPackets::Query::QueryTimeResponse queryTimeResponse;
queryTimeResponse.CurrentTime = GameTime::GetGameTimeSystemPoint();
queryTimeResponse.CurrentTime = GameTime::GetSystemTime();
SendPacket(queryTimeResponse.Write());
}