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

#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:[email protected]

qq:196568501

author:DriveMonkey

phone:13410905075


你可能感兴趣的:(代码)