public HiPerfTimer() { this.startTime = 0L; this.stopTime = 0L; if (!HiPerfTimer.QueryPerformanceFrequency(out this.freq)) { throw new Win32Exception(); } }
public void Stop() { HiPerfTimer.QueryPerformanceCounter(out this.stopTime); }
public void Start() { Thread.Sleep(0); HiPerfTimer.QueryPerformanceCounter(out this.startTime); }