public void Start() { if (sw.IsRunning) { return; } startCPU = TestNativeMethods.GetProcessTime(); startGCs = GcCount.Now(); sw.Start(); }
public void Stop() { if (!sw.IsRunning) { return; } sw.Stop(); TotalCpu += TestNativeMethods.GetProcessTime() - startCPU; TotalGCs += GcCount.Now() - startGCs; totalTicks += sw.ElapsedTicks; }
public void Stop() { if (!sw.IsRunning) return; sw.Stop(); TotalCpu += NativeMethod.GetProcessTime() - startCPU; TotalGCs += GcCount.Now() - startGCs; totalTicks += sw.ElapsedTicks; }
public void Start() { if (sw.IsRunning) return; startCPU = NativeMethod.GetProcessTime(); startGCs = GcCount.Now(); sw.Start(); }