[mpich-discuss] Program execution time:
Micha Feigin
michf at post.tau.ac.il
Sat May 15 14:03:39 CDT 2010
On Sat, 15 May 2010 17:22:38 +0500
sankar s <keanesankar at gmail.com> wrote:
> 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
How different are the timings?
They are expected to be somewhat different as this is a multi-process
system, so your application is time sharing the CPU.
More information about the mpich-discuss
mailing list