Advertisement
Guest User

Untitled

a guest
Nov 15th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.11 KB | None | 0 0
  1. diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h
  2. index 9b1cac6..de5a17d 100644
  3. --- a/src/common/Utilities/Util.h
  4. +++ b/src/common/Utilities/Util.h
  5. @@ -723,13 +723,26 @@ class EventMap
  6.          /**
  7.          * @name RepeatEvent
  8.          * @brief Repeats the mostly recently executed event.
  9. -        * @param time Time as std::chromo until the event occurs.
  10. +        * @param time Time as std::chrono until the event occurs.
  11.          */
  12.          void Repeat(Milliseconds const& time)
  13.          {
  14.              Repeat(uint32(time.count()));
  15.          }
  16.  
  17. +
  18. +        /**
  19. +        * @name RepeatEvent
  20. +        * @brief Repeats the mostly recently executed event.
  21. +        * @param time Time as floating point std::chrono until the event occurs.
  22. +        */
  23. +
  24. +        template<class Rep, class Period>
  25. +        void Repeat(const std::chrono::duration<Rep, Period>& time)
  26. +        {
  27. +            Repeat(std::chrono::duration_cast<std::chrono::milliseconds>(time).count());
  28. +        }
  29. +
  30.          /**
  31.          * @name RepeatEvent
  32.          * @brief Repeats the mostly recently executed event.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement