Author: tim.bunce
Date: Mon Nov 24 02:56:32 2008
New Revision: 622
Modified:
trunk/lib/Devel/NYTProf/Util.pm
Log:
Add 's' unit to '0' value returned by fmt_time()
Modified: trunk/lib/Devel/NYTProf/Util.pm
==============================================================================
--- trunk/lib/Devel/NYTProf/Util.pm (original)
+++ trunk/lib/Devel/NYTProf/Util.pm Mon Nov 24 02:56:32 2008
@@ -164,7 +164,7 @@
sub fmt_time {
my ($sec, $width) = @_;
$width = '' unless defined $width;
- return sprintf "%$width.0f", 0 unless $sec;
+ return sprintf "%$width.0fs", 0 unless $sec;
return '-'.fmt_time(-$sec, $width) if $sec < 0; # negative value, can
happen
return sprintf "%$width.0fns", $sec * 1e9
if $sec < 1e-6;
return sprintf "%$width.0fµs", $sec * 1e6
if $sec < 1e-3;
--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---