|
5/31 |
2003/11/14-15 [Uncategorized] UID:11085 Activity:nil |
11/14 In Fortran, runtime can be found by t1=TIME(), t2=TIME(), runtime=t2-t1. What's the equivalent to TIME() in C? \_ man gettimeofday (time in seconds + useconds since 1970) \_ Or, if you're lazy and just want seconds, you can use C's own time() function: time_t t1 = time(NULL); |