#include <stdio.h>
#include <time.h>
int main(){
clock_t begin, end; //declaration of variables to store clock ticks elapsed
double time_taken; //variable to store how long taken
begin = clock(); //start the clock
//execute some commands
end = clock(); //stop the clock
time_taken = (double)(end-begin) / CLOCKS_PER_SEC; //work out how long dividing by number of clock ticks per second
printf("Time taken: %f", time_taken);
return 0;
}