c++ 中 毫秒级时间获取

来源:互联网 发布:新歌2016网络红歌 编辑:程序博客网 时间:2024/06/17 13:52
#include <time.h>


 


clock_t start,ends;
start=clock();


Sleep(50);


ends=clock();


cout<<ends-start<<endl;
0 0
原创粉丝点击