Finding time of execution of code in c