RosettaCodeData/Task/Time-a-function/Logo/time-a-function.logo

11 lines
194 B
Plaintext

to time
output first first shell "|date +%s|
end
to elapsed :block
localmake "start time
run :block
(print time - :start [seconds elapsed])
end
elapsed [wait 300] ; 5 seconds elapsed