🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #641

Re: Execution time in Perl

#641
From: Jeremy D. Zawodny
Date: Wed, 29 Oct 1997 17:29
31 lines
1631 bytes
[cc'd automagically to original author]

On Wed, 29 Oct 1997 12:23:58 -0500, cjz <us011769@interramp.com>
wrote:

Please do not post to comp.lang.perl. It is a dead group.

>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.

If you're on a Unix platform, you may be able to use the 'time'
command to do that.

% time perl script.pl

Jeremy
-- 
Jeremy Zawodny
Internet Technology Group
Information Technology Services
Marathon Oil Company, Findlay Ohio

http://www.marathon.com/

Unless explicitly stated, these are my opinions only--not those of my employer.
Technical Details
Message-ID: <3457721d.2171141@igate.hst.moc.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!news.wnaft.agh.edu.pl!uucp-gw.cyf.gov.pl!news.icm.edu.pl!fu-berlin.de!news.maxwell.syr.edu!insync!news.insync.net
References: <3457712D.D21178F7@interramp.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!news.wnaft.agh.edu.pl!uucp-gw.cyf.gov.pl!news.icm.edu.pl!fu-berlin.de!news.maxwell.syr.edu!insync!news.insync.net
From: zawodny@hou.moc.com (Jeremy D. Zawodny)
Newsgroups: comp.lang.perl.misc,pl.comp.lang.perl
Subject: Re: Execution time in Perl
Date: Wed, 29 Oct 1997 17:29:02 GMT
Organization: Marathon Oil Company - IT Services: Findlay, Ohio
Lines: 31
Message-ID: <3457721d.2171141@igate.hst.moc.com>
References: <3457712D.D21178F7@interramp.com>
NNTP-Posting-Host: 192.70.218.1
Mime-Version: 1.0
X-Newsreader: Forte Agent 1.5/32.452
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit