[wx-dev] wxTimer time units seem wrong in wxMac-2.6.3

Stefan Csomor csomor at advancedconcepts.ch
Fri Aug 4 17:34:05 PDT 2006


On Aug 4, 2006, at 1:49 PM, Roger Dannenberg wrote:

> I just installed wxMac-2.6.3 on a Powerbook Pro (Intel, OS X  
> 10.4.7). When I
> Start() a wxTimer with an interval of 5, I get 20 callbacks per  
> second. When
> I change the interval to 1, I get 100 callbacks per second. It  
> seems that
> the units for the wxTimer interval are 0.01 seconds, not  
> milliseconds as
> documented.

Very strange, from looking at the code everything is calculated  
correctly. As we are using carbon timers, we are not 'interrupt'  
accurate, so any really blocking action might block the carbon event  
pump as well. Could you send me via private e-mail a sample, so I  
could verify

thanks,

Stefan





More information about the wx-dev mailing list