测量某断代码执行时间-代码

#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


posted @ 2013-04-22 16:45  javawebsoa  Views(125)  Comments(0Edit  收藏  举报