A fast lua timer that... well... times.
Also, how do I put a window showing code? (like the gray box)
--Lua Timer made by dom2mom
local time = os.date("*t")
delay = PUT DELAY HERE
timer = time.PUT HOUR, MIN, OR SEC HERE
print (string.format("The start time is %d:%d:%d",time.hour, time.min, time.sec))
local isTimerUp = false
while isTimerUp == false do
time = os.date("*t")
if time.PUT HOUR, MIN, OR SEC HERE == timer + delay then
print (string.format("The end time is %d:%d:%d",time.hour, time.min, time.sec))
isTimerUp = true
end
end
Yay. I've wanted to know how to do that. I'm going to try.
<code>
Beep
</code>