标签:span star int sdn style time 时间 null eval
参考网址:http://blog.csdn.net/trustbo/article/details/10582287
#include <</span>stdio.h> #include <</span>sys/time.h> int main() { struct timeval start, end; gettimeofday( &start, NULL ); sleep(3); gettimeofday( &end, NULL ); int timeuse = 1000000 * ( end.tv_sec - start.tv_sec ) + end.tv_usec -start.tv_usec; printf("time: %d us\n", timeuse); return 0; }
标签:span star int sdn style time 时间 null eval
原文地址:http://www.cnblogs.com/hwy89289709/p/6941920.html