Handle a signal: Difference between revisions

no edit summary
No edit summary
Line 101:
Program execution took 4.348057086 seconds
</pre>
 
=={{header|AutoHotkey}}==
<lang AutoHotkey>Start:=A_TickCount
counter=0
SetTimer, timer, 500
return
 
timer:
Send % ++Counter "`n"
return
 
^c::
SetTimer, timer, off
SetFormat, float, 0.3
Send, % "Task took " (A_TickCount-Start)/1000 " Seconds"
ExitApp
return</lang>
Outputs:<pre>1
2
3
4
5
6
Task took 3.526 Seconds</pre>
 
=={{header|BBC BASIC}}==
{{works with|BBC BASIC for Windows}}
299

edits