Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h
- index 9b1cac6..de5a17d 100644
- --- a/src/common/Utilities/Util.h
- +++ b/src/common/Utilities/Util.h
- @@ -723,13 +723,26 @@ class EventMap
- /**
- * @name RepeatEvent
- * @brief Repeats the mostly recently executed event.
- - * @param time Time as std::chromo until the event occurs.
- + * @param time Time as std::chrono until the event occurs.
- */
- void Repeat(Milliseconds const& time)
- {
- Repeat(uint32(time.count()));
- }
- +
- + /**
- + * @name RepeatEvent
- + * @brief Repeats the mostly recently executed event.
- + * @param time Time as floating point std::chrono until the event occurs.
- + */
- +
- + template<class Rep, class Period>
- + void Repeat(const std::chrono::duration<Rep, Period>& time)
- + {
- + Repeat(std::chrono::duration_cast<std::chrono::milliseconds>(time).count());
- + }
- +
- /**
- * @name RepeatEvent
- * @brief Repeats the mostly recently executed event.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement