| Total Complexity | 3 | 
| Total Lines | 25 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php  | 
            ||
| 28 | class TPageLoadTime extends TLabel  | 
            ||
| 29 | { | 
            ||
| 30 | /**  | 
            ||
| 31 | * writes the difference in time that the request started to the moment of this method call.  | 
            ||
| 32 | * @param mixed $writer  | 
            ||
| 33 | */  | 
            ||
| 34 | public function renderContents($writer)  | 
            ||
| 35 | 	{ | 
            ||
| 36 | $writer->write(round(microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"], 5) . Prado::localize($this->getSecondSuffix()));  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @return string the string that is appended to the time. default 's' for seconds.  | 
            ||
| 41 | */  | 
            ||
| 42 | public function getSecondSuffix()  | 
            ||
| 43 | 	{ | 
            ||
| 44 | 		return $this->getViewState('Suffix', 's'); | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 | /**  | 
            ||
| 48 | * @param string $suffix the string that is appended to the time.  | 
            ||
| 49 | */  | 
            ||
| 50 | public function setSecondSuffix($suffix)  | 
            ||
| 53 | }  | 
            ||
| 54 | }  | 
            ||
| 55 |