[Tutor] Timing calculation (fwd)
Danny Yoo
dyoo@hkn.eecs.berkeley.edu
Fri, 20 Sep 2002 16:21:22 -0700 (PDT)
Hi Ali,
You probably meant to send mail to Tutor, so let me forward your question
there. Good luck to you!
---------- Forwarded message ----------
Date: Fri, 20 Sep 2002 15:40:17 -0700
From: Ali Soleymanzadeh <asoleyma@lightspeed.com>
To: dyoo@hkn.eecs.berkeley.edu
Subject: Timing calculation
Hi,
Could someone please show me how to calculate the time, which is running by
a test. My program is doing:
...
os.system( "make deja %s 2>&1 | tee %s" % (makeopts,spoolfile) )
data = open( spoolfile ).read()
...
I need to get the time before and after running "make deja", then calculate
the time between.
Thanks in advance for your help.
Regards,
-Ali