Sorry, let me rephrase the question i had in mind...
the time <command> gives the time taken to execute the "command"..
but , i am required to find out the time between two particular instances during the execution of the program.
i tried clock() , which gives me the number of clock cycles upto that point
but, it shows both time1 and time2 as being equal to 0.000000Code:# define <time.h> ................... .................... clock_t time1,time2; time1=clock(); /* codes codes */ time2=clock();
how else should i go about ?