Dear all,

the Timer object from the System.Timers namespace has a limited accuracy
(time resolution) on Windows platforms unless you increase the resolution in
your app with some Windows specific multimedia functions.

The NSTimer object in iOS also has a limited (50ms) accuracy according to
Apple documentation.

Our app uses timers so I made a quick check of the System.Timers.Timer
resolution in the iOS simulator. I set the Interval property to the minimum
value of 1 and read the DateTime.Now.Milliseconds value in each Elapsed
callback. I can see that the number of milliseconds is increasing one by
one. HUH.

Can anybody explain to me, how Mono implements this Timer class to achieve
this high resolution?

Will this millisecond resolution be available on real iOS devices as well? I
have no iPhone handy to run the test now.

Thanks a lot.

Alex



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/System-Timers-Timer-resolution-tp4656428.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to