When using an Operator Modal Timer, how do i change the time period such that it executes every 5 seconds?
The event timer has a property which defines how often your modal function will get called with the timer event, just change the value accordingly in the execute function:
time = 5.0
self._timer = wm.event_timer_add(time, window=context.window)