Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Time in milliseconds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time in milliseconds



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.

AppleScript could probably access the inner workings of the computer without
this overhead if a 'with milliseconds' parameter were added to the 'time'
property of 'date'. Both Carbon and Cocoa can get precision to the 10,000th
of a second (10th of a millisecond). It would be a very handy extension of
the language. Using any osax, whether GetMilliSec or 'so shell script', is
fruitless if that extreme degree of accuracy is needed.

--
Paul Berkowitz
_______________________________________________
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 Skinner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.