Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }