Article View: pl.comp.lang.perl
Article #643Re: Execution time in Perl
From: Scott Yanoff
Date: Mon, 03 Nov 1997 19:43
Date: Mon, 03 Nov 1997 19:43
21 lines
1544 bytes
1544 bytes
chds652 wrote: > > cjz wrote: > > > Hello, > > I am trying to find a way to time the execution of a script. At this > > time I have implemented something very simple that grabs the "time" in > > seconds at the start of the scripts and grabs it again at the end, > > compares them and prints out the time in seconds. > > > > I am looking for a way to measure the execution time more accurately, > > say in 10ths, 100ths, 1000ths etc. of a second. Please help. I think one other way you can do this, if you are on a UNIX platform and running the PERL script by hand, is to put the word "time" before the perl script: $ time some_script.pl The man page should have more info. -Scott
Technical Details
Message-ID:
<345E2978.7EEC@alumni.cs.uwm.edu>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.icm.edu.pl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.netaxs.com!newsfeeds.sol.net!nntp.inc.net!news.inc.net!not-for-mailReferences:
<3457712D.D21178F7@interramp.com> <34584A86.CCC605B2@botcc.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.icm.edu.pl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.netaxs.com!newsfeeds.sol.net!nntp.inc.net!news.inc.net!not-for-mail From: Scott Yanoff <yanoff@alumni.cs.uwm.edu> Newsgroups: comp.lang.perl.misc,pl.comp.lang.perl,comp.lang.perl Subject: Re: Execution time in Perl Date: Mon, 03 Nov 1997 13:43:52 -0600 Organization: Internet Connect, Inc. http://www.inc.net usenet@news.inc.net Lines: 21 Message-ID: <345E2978.7EEC@alumni.cs.uwm.edu> References: <3457712D.D21178F7@interramp.com> <34584A86.CCC605B2@botcc.com> Reply-To: yanoff@alumni.cs.uwm.edu NNTP-Posting-Host: wildcard.strong-funds.com Mime-Version: 1.0 X-Mailer: Mozilla 3.01Gold (WinNT; U) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit