• 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: performance tuning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performance tuning


  • Subject: Re: performance tuning
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 23 Mar 2004 11:40:29 +0100

On 23. Mar 2004, at 10:45, Tobias Kl|pfel wrote:

Please tell me:
1. Do they really?

That depends on the general system load. If (cpu) time permits it, you should get exactly 20 ticks pr. second. But e.g. if you e.g. spend 0.1 s pr. tick, then it naturally will fail to deliver 20 ticks pr. second ;)

2. What tool should I use to determine whether my app really fires 20
times out of 20?

When you start the timer, save the current time, then on each tick, increment a variable and when it hits e.g. 1,200 print current time and the time you recorded when the timer was started -- if more than 60.0 seconds have elapsed, your timer fires <20 times pr. second (19 times would give you 63.16 seconds).




** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >performance tuning (From: Tobias Klüpfel <email@hidden>)

  • Prev by Date: Re: NSLocalizedString() doesn't work
  • Next by Date: [ANN] New UKUpdateChecker (NiftyFeatures 0.3)
  • Previous by thread: performance tuning
  • Next by thread: Re: performance tuning
  • Index(es):
    • Date
    • Thread