Newsgroups: comp.parallel.pvm
From: topol@gaia.cc.gatech.edu (topol)
Subject: Re: Timing PVM programs
Organization: College of Computing, Georgia Tech
Date: 08 Mar 1995 00:29:00 GMT
Message-ID: <TOPOL.95Mar7192901@gaia.cc.gatech.edu>

The following is the code for the msecond() routine referred to in 
article 3540:
-----------------------------------------------------------------------
#include <sys/types.h>
#include <sys/time.h>
        double msecond()
{
        double msec;
        struct timeval tv;
        gettimeofday(&tv,0);

        msec = tv.tv_sec * 1.0e3 + tv.tv_usec * 1.0e-3;
return msec;
}
-----------------------------------------------------------------------
--
-------------------------------------------------------------------------
Brad Topol				College of Computing
Email: topol@cc.gatech.edu		Georgia Institute of Technology
Phone: (404)-853-9393			801 Atlantic Drive
Office: 262 A, CoC			Atlanta, Georgia 30332-0280, USA
http://www.cc.gatech.edu/gvu/people/Phd/Brad.Topol.html
-------------------------------------------------------------------------

