Ejemplo n.º 1
0
 public void Start()
 {
     if (sw.IsRunning)
     {
         return;
     }
     startCPU = TestNativeMethods.GetProcessTime();
     startGCs = GcCount.Now();
     sw.Start();
 }
Ejemplo n.º 2
0
 public void Stop()
 {
     if (!sw.IsRunning)
     {
         return;
     }
     sw.Stop();
     TotalCpu   += TestNativeMethods.GetProcessTime() - startCPU;
     TotalGCs   += GcCount.Now() - startGCs;
     totalTicks += sw.ElapsedTicks;
 }
Ejemplo n.º 3
0
 public void Stop()
 {
     if (!sw.IsRunning) return;
     sw.Stop();
     TotalCpu += NativeMethod.GetProcessTime() - startCPU;
     TotalGCs += GcCount.Now() - startGCs;
     totalTicks += sw.ElapsedTicks;
 }
Ejemplo n.º 4
0
 public void Start()
 {
     if (sw.IsRunning) return;
     startCPU = NativeMethod.GetProcessTime();
     startGCs = GcCount.Now();
     sw.Start();
 }