[mpich-discuss] Program execution time:

sankar s keanesankar at gmail.com
Sat May 15 07:22:38 CDT 2010


Hi,

I have developed a simulation program in c using MPI. I am using
gettickcount() function to find time taken in each core for executing this
program in a core2 duo processor.

start=gettickcount() ;
{
code
}
end=gettickcount();
time=end-start();

Its working properly but each time when I ran this code, its giving
different execution times. its happening for my sequential code without MPI
also. I am using Windows vista, DELL core 2 duo processor.

   Is there any way to measure exact execution time in c.Which will not
change every time, when I run the program.?



Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100515/d693447c/attachment.htm>


More information about the mpich-discuss mailing list