static function calc_end() { self::$time_end = time(); $tpl = '<div style="font-family:consolas;border:2px solid #eee;padding:5px;">It cost %s s</div>'; $timespam = self::$time_end - self::$time_begin; echo sprintf($tpl, $timespam); }