aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/EventProcessor.cpp
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2020-07-25 23:07:29 +0200
committerPeter Keresztes Schmidt <carbenium@outlook.com>2020-07-27 13:36:25 +0200
commit92a02a5c8750913f596d7e3b58bf8439cb770c28 (patch)
tree3663148e3332b1e51040fc8747c5666850425100 /src/common/Utilities/EventProcessor.cpp
parent1131229ee9c43704b11187f0b11c327db92018b6 (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)
Diffstat (limited to 'src/common/Utilities/EventProcessor.cpp')
-rw-r--r--src/common/Utilities/EventProcessor.cpp2
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);
}
}