• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Time in milliseconds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Time in milliseconds (From: Paul Berkowitz <email@hidden>)
 >Re: Time in milliseconds (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Time in milliseconds
  • Next by Date: Re: Time in milliseconds
  • Previous by thread: Re: Time in milliseconds
  • Next by thread: Re: Time in milliseconds
  • Index(es):
    • Date
    • Thread