• 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: How can I format an integer ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I format an integer ?


  • Subject: Re: How can I format an integer ?
  • From: AndrĂ© Berg <email@hidden>
  • Date: Thu, 06 Nov 2008 23:29:03 +0100

Hi Shane,

You're right. A misplaced 0 in my code and ironically somewhat
tied to the problem of translating decimal separators from one locale
to another :)

It's really 0.007 on my MacPro. Thanks for pointing it out, as I wouldn't
have seen it no matter what. Been working two days straight.

André


--- Original Nachricht ---
Absender: Shane Stanley
Datum: 06.11.2008 23:11 Uhr
On my MacPro 3000Mhz octo-core which I bought two months ago
'do shell script' takes approx 0.070 - 0.080 s (avg of 1000 execs)
not counting the time for the actual shell script to run.
    

That sounds on the slow side. On my 2.5GHz MacBook Pro this:

set time1 to current date
repeat 1000 times
    do shell script "ls /"
end repeat
set time2 to current date
return (time2 - time1) / 1000

returns around 0.009 seconds, and that is counting the time for ls to do its
thing. I'm a bit surprised to hear that your eight-core superbox is an order
of magnitude slower.

  
 _______________________________________________
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: 
 >Re: How can I format an integer ? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: How can I format an integer ?
  • Next by Date: Delete person in AddressBook
  • Previous by thread: Re: How can I format an integer ?
  • Next by thread: Re: How can I format an integer ?
  • Index(es):
    • Date
    • Thread