Re: Time in milliseconds
Re: Time in milliseconds
- Subject: Re: Time in milliseconds
- From: Emmanuel <email@hidden>
- Date: Sat, 31 Jul 2004 10:49:23 +0200
At 8:42 PM -0400 30/07/04, Paul Skinner wrote:
>
>
set t1 to GetMilliSec
>
set r to 1000
>
repeat r times
>
GetMilliSec
>
end repeat
>
set t2 to (GetMilliSec)
>
(((t2 - t1) / r) as text) & "ms per call"
>
-->1.166ms per call
chrono
set t to 0
set r to 1000
repeat r times
set t to t + chrono
end repeat
set t to t + chrono
((1000 * t / r) as text) & "ms per call"
-- "0.227ms per call" -- iBook G3/900
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.