コード例 #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;
     }
 }