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