Even better would be to use the constructor of the TimeSpan class which
encapsulates the logic, and takes it out of your hands:
TimeSpan ts = new TimeSpan(DateTime.UtcNow.Ticks);
double ms = ts.TotalMilliseconds;
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Marc Gravell" <ma**********@gmail.comwrote in message
news:un**************@TK2MSFTNGP05.phx.gbl...
long ms1 = DateTime.UtcNow.Ticks / TimeSpan.TicksPerMillisecond;
Marc