public void Start() { offset = (long)0; qpcStart = (long)0; paused = false; CCTPerformanceTimer.QueryPerformanceCounter(ref qpcStart); }
public void Resume() { if (paused) { paused = false; CCTPerformanceTimer.QueryPerformanceCounter(ref qpcStart); } }
public void Pause() { if (!paused) { paused = true; long l = (long)0; CCTPerformanceTimer.QueryPerformanceCounter(ref l); offset += l - qpcStart; } }