...
Code Block | ||
---|---|---|
| ||
double run_big_program () { clock_t start, finish; double seconds; start = clock(); if (start == (clock_t)(-1)){ return -1.0; } run_long_program(); finish = clock(); if (finish == (clock_t)(-1)){ return -1.0; } seconds = (double) (finish-start)/CLOCKS_PER_SEC; return seconds; } |
...