program execution time calculate in c
#include <stdio.h>
#include <time.h>
int main() {
clock_t start, end;
double cpu_time_used;
// Record the start time
start = clock();
// Your program logic goes here
// Record the end time
end = clock();
// Calculate the execution time
cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
// Display the execution time
printf("CPU Time Used: %f seconds\n", cpu_time_used);
return 0;
}