Changeset 1362 for branches/mt4.11/lib/MT/Template.pm
- Timestamp:
- 02/13/08 04:30:51 (22 months ago)
- Files:
-
- 1 modified
-
branches/mt4.11/lib/MT/Template.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 }
