/// <summary> /// Returns the number of milliseconds that have elapsed since /// system startup. /// </summary> public double GetTickCountDouble() { ulong tick; SafeNativeMethods.QueryPerformanceCounter(out tick); return((double)tick / countsPerMsDouble); }
/// <summary> /// Returns the number of milliseconds that have elapsed since /// system startup. /// </summary> public ulong GetTickCount() { ulong tick; SafeNativeMethods.QueryPerformanceCounter(out tick); return(tick / countsPerMs); }