Suggest: running_tick = 0 for event in self: t = event.tick event.tick -= running_tick running_tick = t