#include <stdio.h> #include <time.h> #include <math.h> of clock_t Start, STOP; // of clock_t of clock () Returns the variable type Double DURATION; // record the measured function of time, to seconds int main ( int argc, char ** the argv) { / * no longer prepared to work in the test range of the write clock () before calling * / // start timing start = clock (); // was measured as a function // stop the timer sTOP = Clock (); // calculate runtime DURATION = (( Double ) (sTOP - Start)) / CLOCKS_PER_SEC; / * Processing of other tests not written on the back of the range, for example, the value of the output duration * / the printf ( " Running Time:. 6.2es% \ n- " , duration); return 0 ; }