2004-10-28から1日間の記事一覧
#include #include double time_diff( struct timeval*, struct timeval*); main() { struct timeval t1, t2; gettimeofday(&t1, NULL); gettimeofday(&t2, NULL); printf("%f\n",time_diff(&t1,&t2)/1000000.0);}double time_diff( struct timeval *st, str…