예제 #1
0
 /**
  * Finaliza a contagem de tempo onde $name eh o identificador para inicio da contagem
  * Caso $log_file seja true um arquivo de log chamado $name_time.log sera criado.
  *
  * @param string $name
  * @param bool $log_file
  */
 public static function timeExecutionEnd($name)
 {
     $tempo = microtime();
     if (!isset(self::$times[$name]['init'])) {
         throw new Ibe_Exception('O timeExecution ' . $name . ' nao foi inicializado');
     }
     $time = number_format($tempo - self::$times[$name]['init'], 5, ',', ' ');
     Ibe_Debug::warn($time);
 }