#include <sys/time.h>
struct timeval t; gettimeofday(&t,NULL); std::cout<
for(int i=0;i<1000000;i++)
原文轉自:http://www.anti-gravitydesign.com