• 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
Do shell script "date" vs current date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Do shell script "date" vs current date


  • Subject: Do shell script "date" vs current date
  • From: bill <email@hidden>
  • Date: Mon, 11 Mar 2002 03:14:53 +0800

Hello,

Yesterday I tried to make a time stamp by do shell script 3date2, found that
the speed is quite slow, compare to current date, below is the test:

set t1 to current date

repeat 20000 times
current date
end repeat

set t2 to current date

repeat 100 times
do shell script "date"
end repeat

set t3 to current date

{t2 - t1, t3 - t2}
-- {10, 11}

While both current date and do shell script are in the standard addition,
any idea about the speed difference?


TIA
Bill :(
_______________________________________________
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.

  • Follow-Ups:
    • Re: Do shell script "date" vs current date
      • From: garbanzito <email@hidden>
  • Prev by Date: Re: Damn send button / Wind chill (nesting more efficient shock)
  • Next by Date: sending mail from an applescript
  • Previous by thread: Re: Labeled parameter bug
  • Next by thread: Re: Do shell script "date" vs current date
  • Index(es):
    • Date
    • Thread