发布时间:2014-08-25 17:00:56
struct timeval tstart, tfinish;long int duration1;long int duration2;do_gettimeofday(&tstart);do somesting();do_gettimeofday(&tfinish);duration1 = 1000000*(tfinish.tv_sec - tstart.tv_sec) + tfinish.tv_usec - tstart.tv_usec;printk("lei_guo:%s==>duration1= %ld \n",__func__,d.........【阅读全文】