private void Timer_GET_FRAME_RATE_Tick(object sender, EventArgs e) { float fFrameRate = 0.0f; KSJApiBase.KSJ_PreviewGetFrameRate(m_nDeviceCurSel, ref fFrameRate); string szFrameRate = fFrameRate.ToString("0.00"); this.Text = string.Format("KSJDemo Fps={0}", szFrameRate); }