コード例 #1
0
 public HiPerfTimer()
 {
     this.startTime = 0L;
     this.stopTime  = 0L;
     if (!HiPerfTimer.QueryPerformanceFrequency(out this.freq))
     {
         throw new Win32Exception();
     }
 }
コード例 #2
0
 public void Stop()
 {
     HiPerfTimer.QueryPerformanceCounter(out this.stopTime);
 }
コード例 #3
0
 public void Start()
 {
     Thread.Sleep(0);
     HiPerfTimer.QueryPerformanceCounter(out this.startTime);
 }