Show
Ignore:
Timestamp:
06/05/10 16:24:37 (2 years ago)
Author:
ort
Message:

fix + вынос статистики производительности из index.php в отдельный шаблон

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/engine/classes/Engine.class.php

    r907 r926  
    4141        protected $aConfigModule; 
    4242        public $iTimeLoadModule=0; 
     43        protected $iTimeInit=null; 
    4344         
    4445        /** 
     
    5455         */ 
    5556        protected function __construct() { 
     57                $this->iTimeInit=microtime(true); 
    5658                if (get_magic_quotes_gpc()) { 
    5759                        func_stripslashes($_REQUEST); 
     
    394396        public function getStats() { 
    395397                return array('sql'=>$this->Database_GetStats(),'cache'=>$this->Cache_GetStats(),'engine'=>array('time_load_module'=>round($this->iTimeLoadModule,3))); 
     398        } 
     399         
     400        public function GetTimeInit() { 
     401                return $this->iTimeInit; 
    396402        } 
    397403