How efficient is this algorithm?

As i said, im trying to make an algorithm that works while the game is paused, unfortunately SetTimerByEvent stops when the game is paused, as far as i know.