Milliseconds in DateTime.Now on .NET Compact Framework always zero?
Posted
by Marcel
on Stack Overflow
See other posts from Stack Overflow
or by Marcel
Published on 2010-04-09T09:31:58Z
Indexed on
2010/04/09
9:43 UTC
Read the original article
Hit count: 478
Hi all,
i want to have a time stamp for logs on a Windows Mobile project. The accuracy must be in the range a hundred milliseconds at least.
However my call to DateTime.Now
returns a DateTime
object with the Millisecond
property set to zero. Also the Ticks
property is rounded accordingly.
How to get better time accuracy?
Remember, that my code runs on on the Compact Framework, version 3.5. I use a HTC touch Pro 2 device.
© Stack Overflow or respective owner