Exemple #1
0
        //static long m_freq = Stopwatch.Frequency;

        static PerformanceTimer() {
            m_startTicks = m_dateTime.Ticks;
            if (UnitPrecision == 0) {
                //TODO: Read the DefaultValue attribute of the UnitPrecision property and initialize it with that value.
                UnitPrecision = UnitPrecision.NANOSECONDS;
            }
        }
 static Stopwatch() {
     m_startTime = DateTime.Now.Ticks;
     if (UnitPrecision == 0) {
         //TODO: Read the DefaultValue attribute of the UnitPrecision property and initialize it with that value.
         UnitPrecision = UnitPrecision.NANOSECONDS;
     }
 }
Exemple #3
0
 static Stopwatch()
 {
     m_startTime = DateTime.Now.Ticks;
     if (UnitPrecision == 0)
     {
         //TODO: Read the DefaultValue attribute of the UnitPrecision property and initialize it with that value.
         UnitPrecision = UnitPrecision.NANOSECONDS;
     }
 }