测量某断代码执行时间-代码
print?#include <time.h>
void main(void)
{
int time_counter = 600;
time_t start,end;
time(&start);
while(time_counter--)
//added your test code
time(&end)
printf("start = %d, end = %d", start, end);
exit(0);
}
#include <time.h>
void main(void)
{
int time_counter = 600;
time_t start,end;
time(&start);
while(time_counter--)
//added your test code
time(&end)
printf("start = %d, end = %d", start, end);
exit(0);
}
mail:bookworepeng@Hotmail.com
qq:196568501
author:DriveMonkey
phone:13410905075
补充:综合编程 , 其他综合 ,