I finished the programming of a class project, but I still need to get the running time. I tried clock() function, but it didn't work.
int main()
{
clock_t start_time=clock();
(my codes)
clock_t end_time=clock();
printf("The running time is %f", end_time-start_time);
}
I guess this is the right way to use clock function, am I right? But I got nothing but 0.000000. Could someone tell me the right way? Thank you!