public void Tick() { long now; QueryPerformanceCounter(out now); fps++; if (now - last > freq) // update every second { last = now; form.UpdateFPSStatus("FPS=" + fps); fps = 0; } }
public void Tick() { long now; QueryPerformanceCounter(out now); fps++; if (now - last > freq) // update every second { last = now; form.UpdateFPSStatus("FPS=" + fps); fps = 0; } if (now - clast > cfreq) { clast = now; HandsRecognition.Show(); fps = 0; } }