Re: performance tuning
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.