Changeset 1362
- Timestamp:
- 02/13/08 04:30:51 (22 months ago)
- Location:
- branches/mt4.11/lib/MT
- Files:
-
- 2 modified
-
Template.pm (modified) (2 diffs)
-
WeblogPublisher.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/mt4.11/lib/MT/Template.pm
r1361 r1362 215 215 if (MT->config->PerformanceLogging) { 216 216 $timer = MT->get_timer(); 217 # $start = Time::HiRes::time(); 218 } else { 219 $timer = {}; 220 } 221 local $timer->{elapsed} = 0; 217 } 218 local $timer->{elapsed} = 0 if $timer; 222 219 223 220 local $ctx->{__stash}{template} = $tmpl; … … 259 256 260 257 if ($timer) { 261 # $timer->{prev} = $start;262 258 $timer->mark("MT::Template::build[" . ($tmpl->name || $tmpl->{__file}).']'); 263 259 } -
branches/mt4.11/lib/MT/WeblogPublisher.pm
r1361 r1362 1398 1398 if ($timer) { 1399 1399 $timer->pause_partial; 1400 } else { 1401 $timer = {}; 1402 } 1403 local $timer->{elapsed} = 0; 1400 } 1401 local $timer->{elapsed} = 0 if $timer; 1404 1402 1405 1403 if ( … … 1700 1698 if ($timer) { 1701 1699 $timer->pause_partial; 1702 } else { 1703 $timer = {}; 1704 } 1705 local $timer->{elapsed} = 0; 1700 } 1701 local $timer->{elapsed} = 0 if $timer; 1706 1702 1707 1703 my $ctx = MT::Template::Context->new;
