mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-31 01:23:47 +00:00
feat(Core/Time): Implement saparated manager for game time (#8630)
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
*/
|
||||
|
||||
#include "SFMTRand.h"
|
||||
#include "Timer.h"
|
||||
#include <array>
|
||||
#include <ctime>
|
||||
#include <functional>
|
||||
#include <random>
|
||||
|
||||
@@ -69,7 +69,7 @@ SFMTRand::SFMTRand()
|
||||
}
|
||||
else
|
||||
{
|
||||
sfmt_init_gen_rand(&_state, uint32(time(nullptr)));
|
||||
sfmt_init_gen_rand(&_state, uint32(GetEpochTime().count()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ inline TimePoint GetApplicationStartTime()
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
||||
static const steady_clock::time_point ApplicationStartTime = steady_clock::now();
|
||||
static const TimePoint ApplicationStartTime = steady_clock::now();
|
||||
|
||||
return ApplicationStartTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user