Re: calc function's executed time

2009-06-01 Thread Jim Gibson
On 6/1/09 Mon Jun 1, 2009 1:58 AM, "practicalp...@gmail.com" scribbled: > Hello, > > What's the standard way to calculate a subroute's executed time in Perl? > Thanks in advance. One popular way is to use the Benchmark.pm module. See 'perldoc Benchmark' or

Re: calc function's executed time

2009-06-01 Thread Owen
> But I want the result to be millisecond not only be second. thanks. > > On Mon, Jun 1, 2009 at 5:01 PM, Raymond Wan wrote: >> >> Hi Jenn, >> >> >> practicalp...@gmail.com wrote: >>> >>> What's the standard way to calculate a subroute's executed time in >>> Perl? >>> Thanks in advance. >> >> >>

Re: calc function's executed time

2009-06-01 Thread practicalperl
But I want the result to be millisecond not only be second. thanks. On Mon, Jun 1, 2009 at 5:01 PM, Raymond Wan wrote: > > Hi Jenn, > > > practicalp...@gmail.com wrote: >> >> What's the standard way to calculate a subroute's executed time in Perl? >> Thanks in advance. > > > I don't know what's t

Re: calc function's executed time

2009-06-01 Thread Raymond Wan
Hi Jenn, practicalp...@gmail.com wrote: What's the standard way to calculate a subroute's executed time in Perl? Thanks in advance. I don't know what's the standard way, but I use the times function and get the user time before and after the subroutine and then subtract. http://perldoc.p