dgs.utils.timer.DifferenceTimers.add_multiple¶
- DifferenceTimers.add_multiple(prev_times: dict[str, float]) dict[str, float] [source]¶
Add a bunch of new time differences to the respective timers. Creates new timers if they do not exist yet.
- Parameters:
prev_times – A dict mapping the name of the timer to the previous time in seconds.
- Returns:
A dict containing the time differences in seconds for each of the named timers.