Tutorial/Timer

This is a timer script, the only way to stop it is unfortunately Control+T, and if anyone could find a better way please update the page. This is one of my earliest scripts so please post also if there is a faster way of doing it. --Made by YoshiLucario minute = 00 hour = 00 second = 00 do while 0 < 10 do do if second <= 59 then term.clear term.setCursorPos(7, 3) write(hour..":"..minute..":"..second) second = second + 1 sleep(1) end else second = 0 if minute <= 59 then minute = minute + 1 else minute = 0 if hour <= 23 then hour = hour + 1 else hour = 0 end end end end end