• 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: Milliseconds elapsed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Milliseconds elapsed?


  • Subject: Re: Milliseconds elapsed?
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 05 Sep 2016 20:02:56 -0500

On Sep 05, 2016, at 19:08, Brian Christmas <email@hidden> wrote:
I need to determine an elapsed time in milliseconds, within Applescript.


Hey Brian,

I've used a combination of the Satimage.osax and the LapTime.osax for many years now.

------------------------------------------------------------

set lap1 to lapStart() of me

repeat 1000 times
   set x to "x"
end repeat

set lap1Stop to lapStop(lap1) of me

------------------------------------------------------------
--ยป HANDLERS
------------------------------------------------------------
on lapStart()
   return start timer
end lapStart
------------------------------------------------------------
on lapStop(tmrNumber)
   return format ((stop timer tmrNumber) / 1000) into "##.####"
end lapStop
------------------------------------------------------------

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Milliseconds elapsed? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Milliseconds elapsed?
  • Next by Date: Deletion of Contacts
  • Previous by thread: Re: Milliseconds elapsed?
  • Next by thread: Deletion of Contacts
  • Index(es):
    • Date
    • Thread