摘要: #include #include #include int main(){ struct timeval tpstart,tpend; float timeuse; gettimeofday(&tpstart,NULL); for(int i=0;i<10;i++) { usleep(200000);//暂停200ms } gettimeofday(&tpend,NULL); timeuse=1000000*(tpend.tv_sec-tpstart.tv_sec)+tpend.tv_usec-tpstar... 阅读全文
posted @ 2013-09-12 17:22 星语160523 阅读(1193) 评论(0) 推荐(0) 编辑