Re: Time in milliseconds
Re: Time in milliseconds
- Subject: Re: Time in milliseconds
- From: Paul Skinner <email@hidden>
- Date: Fri, 30 Jul 2004 20:42:33 -0400
On Jul 30, 2004, at 5:40 PM, Paul Berkowitz wrote:
On 7/30/04 1:30 PM, "Paul Skinner" <email@hidden> wrote:
GetMilliSec
-->7.3012042E+7
<http://osaxen.com/modules.php?
op=modload&name=Downloads&file=index&req=getit&lid=112>
GetMilliSec is excellent, but it has the same Heisenberg-limitation
that
simply calling an osax adds many milliseconds delay, so it won't in
fact be
accurate.
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
Paul
_______________________________________________
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.