Newsgroups: comp.parallel.pvm
From: ylli@dome (Y.L.Li)
Subject: a question about times
Organization: Dep. Computer Sci. & Information Eng., Chiao Tung Univ., Taiwan, R.O.C
Date: 31 Jul 1995 13:37:43 GMT
Message-ID: <3vimb7$j5l@news.csie.nctu.edu.tw>



   Would anyone please tell me how to count the total time on the 
following three functions? partition() spawns slaves to do simulation
and recv() receives simulation result from slaves. It seems that 
the following codes don't count in the simulation time of slaves. 
How can we take the wait_to_receive time of master into consideration? 

    #include<sys/times.h>

    main(argc,argv)
    int argc;
    char **argv;
    {
     .... deleted ....

      times(&old);
 I->  partition();
 I    pktckt(tpoption);
 I->  recv();
      times(&new);
      printf("Total simulation time is %f sec.\n",(new.tms_utime-old.tms_utime)/60.0);
    }


   E-mail : dr798311@cs.nthu.edu.tw


