Nautical bell: Difference between revisions

Content added Content deleted
Line 832: Line 832:
delay = untilnexthour.value / 1000
delay = untilnexthour.value / 1000
println("Nautical bell task starting -- next bell in $delay seconds.")
println("Nautical bell task starting -- next bell in $delay seconds.")
# The timer wakes its task every half hour. May drifts slightly so restart yearly.
# The timer wakes its task every half hour. May drift very slightly so restart yearly.
timer = Timer(delay; interval=1800)
timer = Timer(delay; interval=1800)
while true
while true