#include
Clock_t start, end; double duration;
START = clock ();
.... // Need to calculate the code of time
End = clock ();
DURATION = (Double) / clocks_per_sec; // The value obtained is the execution time of this code, in seconds.