timer for script yielding