Index: /branches/mt4.11/lib/MT/Template.pm
===================================================================
--- /branches/mt4.11/lib/MT/Template.pm (revision 1361)
+++ /branches/mt4.11/lib/MT/Template.pm (revision 1362)
@@ -215,9 +215,6 @@
     if (MT->config->PerformanceLogging) {
         $timer = MT->get_timer();
-        # $start = Time::HiRes::time();
-    } else {
-        $timer = {};
-    }
-    local $timer->{elapsed} = 0;
+    }
+    local $timer->{elapsed} = 0 if $timer;
 
     local $ctx->{__stash}{template} = $tmpl;
@@ -259,5 +256,4 @@
 
     if ($timer) {
-        # $timer->{prev} = $start;
         $timer->mark("MT::Template::build[" . ($tmpl->name || $tmpl->{__file}).']');
     }
Index: /branches/mt4.11/lib/MT/WeblogPublisher.pm
===================================================================
--- /branches/mt4.11/lib/MT/WeblogPublisher.pm (revision 1361)
+++ /branches/mt4.11/lib/MT/WeblogPublisher.pm (revision 1362)
@@ -1398,8 +1398,6 @@
     if ($timer) {
         $timer->pause_partial;
-    } else {
-        $timer = {};
-    }
-    local $timer->{elapsed} = 0;
+    }
+    local $timer->{elapsed} = 0 if $timer;
 
     if (
@@ -1700,8 +1698,6 @@
         if ($timer) {
             $timer->pause_partial;
-        } else {
-            $timer = {};
-        }
-        local $timer->{elapsed} = 0;
+        }
+        local $timer->{elapsed} = 0 if $timer;
 
         my $ctx = MT::Template::Context->new;
