Re: Time::HiRes output

2017-05-27 Thread SSC_perl
> On May 24, 2017, at 7:17 PM, Chas. Owens wrote: > > Take a look at Devel::NYTProf... Thanks, Chas. I had made a mental note a while back to look into Devel::NYTProf, but it had slipped my mind, so your response was perfectly timed. Just within the first hour of using it,

Re: Time::HiRes output

2017-05-24 Thread lee
"Chas. Owens" writes: > You can use printf or sprintf to control the format, but what you are doing > is called profiling and it is better to use an actual profiler. Take a look > at Devel::NYTProf > > http://search.cpan.org/~timb/Devel-NYTProf-6.04/lib/Devel/NYTProf.pm > > https://www.perl.org/a

Re: Time::HiRes output

2017-05-24 Thread Chas. Owens
You can use printf or sprintf to control the format, but what you are doing is called profiling and it is better to use an actual profiler. Take a look at Devel::NYTProf http://search.cpan.org/~timb/Devel-NYTProf-6.04/lib/Devel/NYTProf.pm https://www.perl.org/about/whitepapers/perl-profiling.html

Time::HiRes output

2017-05-24 Thread SSC_perl
I’m timing sub routines to get an idea of where my scripts spend the most of their time. This is an example of what I’m doing: use Time::HiRes qw( clock ); my $clock0 = clock(); ... # Do something. my $clock1 = clock(); my $clockd = $clock1 - $clock0; I’m getting values like $cl