鹿我所录的博客

记录我在学习C#中的点点滴滴,记录下以备后来人借鉴。

 

2015年7月6日

VC++ 获取系统时间、程序运行时间(精确到秒,毫秒)的五种方法

摘要: 1.使用CTime类(获取系统当前时间,精确到秒) CString str; //获取系统时间 CTime tm; tm=CTime::GetCurrentTime();//获取系统日期 str=tm.Format("现在时间是%Y年%m月%d日 %X"); MessageBox(str,NULL,MB_OK);a,从CTimet中提取年月日时分秒 CTime t = CTime::GetCu... 阅读全文

posted @ 2015-07-06 17:48 鹿我所录 阅读(29983) 评论(1) 推荐(0) 编辑

导航