screen.resolution.set (512,384)
text.display ("Please wait.",CENTER,10)
!start=time.get()
do ()
loop (50000)
!stop=time.get()
$string=str(!stop-!start,"###.###")
text.display ("Looping from 0 to 50000 takes : "+$string+" seconds",CENTER,300)
text.display ("Press a key to exit.",CENTER,350)
keyboard.wait ()
script.stop ()