diff options
author | Carbenium <carbenium@outlook.com> | 2020-07-25 23:07:29 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-24 12:00:35 +0100 |
commit | eeffb310de3f91a1c456a3c118eb01311557a00b (patch) | |
tree | a2d50e5d6a560d58008fa834767a316c49f19efa /src/common/Utilities/EventProcessor.cpp | |
parent | 310f996b1daf9dea701276847aa3fb30fcd43b9e (diff) |
Core/EventProcessor: std::chrono-ify CalculateTime
uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset).
Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)
(cherry picked from commit 92a02a5c8750913f596d7e3b58bf8439cb770c28)
Diffstat (limited to 'src/common/Utilities/EventProcessor.cpp')
-rw-r--r-- | src/common/Utilities/EventProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Utilities/EventProcessor.cpp b/src/common/Utilities/EventProcessor.cpp index 3895b767aec..e48b622822d 100644 --- a/src/common/Utilities/EventProcessor.cpp +++ b/src/common/Utilities/EventProcessor.cpp @@ -75,7 +75,7 @@ void EventProcessor::Update(uint32 p_time) // Reschedule non deletable events to be checked at // the next update tick - AddEvent(event, CalculateTime(1), false); + AddEvent(event, CalculateTime(1ms), false); } } |