1.实时时钟模式
CTime m_once_time_stop = CTime:: GetCurrentTime();
CTimeSpan elapsedTime;
elapsedTime = m_once_time_stop - m_once_time_start;
str5.Format("%.2i:%.2i" ,elapsedTime.GetMinutes(),elapsedTime.GetSeconds());//分:秒
GetDlgItem( IDC_EDIT1_OnceTime)->SetWindowTextA(str5);
2.定时器
3.高精度定时器
阅读(480) | 评论(0) | 转发(0) |