Author: spadkins
Date: Fri Dec 14 12:47:25 2007
New Revision: 10428
Modified:
p5ee/trunk/App-Context/lib/App/Context.pm
Log:
small bug fix to the new hi_res logging code, to force it to print 6 digits of
microseconds all the time
Modified: p5ee/trunk/App-Context/lib/App/Context.pm
==============================================================================
--- p5ee/trunk/App-Context/lib/App/Context.pm (original)
+++ p5ee/trunk/App-Context/lib/App/Context.pm Fri Dec 14 12:47:25 2007
@@ -1583,7 +1583,7 @@
if ($hi_res) {
App->use("Time::HiRes");
my @timestuff = Time::HiRes::gettimeofday();
- $timestamp = time2str("%Y-%m-%d %H:%M:%S.", $timestuff[0]) .
$timestuff[1];
+ $timestamp = time2str("%Y-%m-%d %H:%M:%S.", $timestuff[0]) .
sprintf("%.6f", $timestuff[1]);
if ($elapsed) {
my $elapsed =
Time::HiRes::tv_interval($self->{_last_log_elapsed_time}, [EMAIL PROTECTED]);
$timestamp .= " " . sprintf("%.6f", $elapsed);