TimeSpan.Ticks accuracy

  • Thread starter Thread starter Stephan Steiner
  • Start date Start date
S

Stephan Steiner

Hi

If I create a TimeSpan by subtracting two DateTime objects (DateTime begin,
DateTime end, TimeSpan span = end.Subtract(begin)) and convert the TimeSpan
into a string using ToString(), I should get something in the form
"hh:mm:ss.millisecondsnsmaller". I'm using the exact same code on both a PC
and a PDA, and on the PDA the result of the ToString() operation is
"hh:mm:ss" without milliseconds. Is there any way to get a more accurate
timespan?

Stephan
 
Casey

Thanks, it's Environment.TickCount but that's just what I'm looking for.

Stephan
 
Back
Top