G
Guest
Hi!
What is the best way to measure time in .NET cf? I currently use:
DateTime start = DateTime.Now;
// Do some work
double elapsed = (DateTime.Now - start).TotalMilliseconds;
This doesn't seem to work very well, as it always returns 0.0 or 1000.0. I
need a better measurement. Any suggestions?
Thanks in advance!
Nille
What is the best way to measure time in .NET cf? I currently use:
DateTime start = DateTime.Now;
// Do some work
double elapsed = (DateTime.Now - start).TotalMilliseconds;
This doesn't seem to work very well, as it always returns 0.0 or 1000.0. I
need a better measurement. Any suggestions?
Thanks in advance!
Nille