public static int ToMilliseconds(long ticks) { return checked((int)(ticks / TimeSpan.TicksPerMillisecond)); }