Timers

I read that DateTime.Now doesn't have the same precision in the compact framework as in the desktop CLR.

Will there be a mechanism to call QueryPerformanceCounter() or something similar?

thanks

[214 byte] By [XNA4ZX80] at [2008-2-10]
# 1

System.Diagnostics.Stopwatch is supported and is plumbed into QPC(). Since Stopwatch uses QPC if available on Windows as well, it is likely a good option.

Paul

PaulBleisch at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 2

I'm very pleased with the Stopwatch; it seems very accurate even when measuring small fractions of time. Nice add-on for the 2.0 framework.

Roger Larsen

twospoons at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...
# 3

Oh great, that's very good to know - I'd completely missed that.

thanks

XNA4ZX80 at 2007-8-31 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,XNA Framework...