please can anyone help or explain to me how can i find time taken for a code to execute.I have put clock in main and its working.But now i have to find time outside main.The clock statement is not working
i have added
clock_t start = clock(); and printf("first Time Elapsed : %f\n", ((double)clock() - start) / CLOCKS_PER_SEC) between code but in main it is working but outside it not.
what should i do.In fact iwant to calculate time for different module.
hope someone will help me out