how would i get this function to repeat

how would i get this function to repeat

[lua]
local clockText = display.newText(“20:00”, 160,30)

local secondsLeft = 20 * 60

local function updateTime()

secondsLeft = secondsLeft - 10

local minutes = math.floor( secondsLeft / 60)

local seconds = secondsLeft % 60

local timeDisplay = string.format("%02d:%02d", minutes, seconds)

clockText.text = timeDisplay

if timeDisplay == “19:00” then

composer.gotoScene(“menu”)

end

end

local countDownTimer = timer.performWithDelay(1000, updateTime, secondsLeft)

sceneGroup:insert(clockText)
[/lua]

you mean repeat this block of code?

because the only function i see there is ‘updateTime’, which you are already executing more than once.

after the timer hits 0:00 i want the function to repeat

you mean repeat this block of code?

because the only function i see there is ‘updateTime’, which you are already executing more than once.

after the timer hits 0:00 i want the function to repeat