Newsgroups: comp.parallel.pvm
From: edemaine@ug.cs.dal.ca (Erik Demaine)
Subject: Re: a question about times
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Date: Mon, 31 Jul 1995 21:16:45 GMT
Message-ID: <DCLn3y.5vI@cs.dal.ca>

Y.L.Li (ylli@dome) wrote:
:    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? 
: ...
:       times(&old);
: ... (stuff to time)
:       times(&new);
: ...

All message-passing does NOT use any user or system time (or very little),
which is what times() measures.  Instead you want to measure the wall
clock time.  For example, use time (in section 2 of the manpages on most
systems).  This will only measure in seconds - there are other routines
(don't know there names off hand) that are more precise.

Erik
--
Erik Demaine        || edemaine@ug.cs.dal.ca  || edemaine@fx2800.dal.ca
edemaine@cs.dal.ca  || 01ERIK@ac.dal.ca       || edemaine@is.dal.ca
URL: http://ug.cs.dal.ca:3400/~edemaine/edemaine.html
--> A glob is a round substance of thick liquid. A blob is an unformed object.

