获取程序段执行时间
摘要:
struct timeval pre_time, now_time;unsigned int time; gettimeofday(&pre_time, NULL);要测试的程序段gettimeofday(&now_time, NULL); time = (now_time.tv_sec - pre 阅读全文
posted @ 2017-12-17 23:17 Hello-World3 阅读(238) 评论(0) 推荐(0) 编辑