Utils/Timer.php
/**
     * Add a new point to the timer
     *
     * @param string $message
     */
Add a new point to the timer
@param string $message
Add a new point to the timer @param string $message
public static function add($message = '')
    {
        $instance = self::getInstance();
        $instance::$counter++;
        $info                  = debug_backtrace();
        $projectDir            = str_replace(DIRECTORY_SEPARATOR, '/', dirname(dirname(dirname(__DIR__))));
        $file                  = str_replace(DIRECTORY_SEPARATOR, '/', $info[0]['file']);
        $instance::$timerArr[] = array(
            'file'    => str_replace($projectDir, '', $file),
            'counter' => $instance::$counter,
            'line'    => $info[0]['line'],
            'time'    => microtime(1),
            'memory'  => memory_get_usage(true),
            'message' => $message
        );
    }
public static function add ( $ message = '' ) { $ instance = self :: getInstance ( ) ; $ instance :: $ counter ++ ; $ info = debug_backtrace ( ) ; $ projectDir = str_replace ( DIRECTORY_SEPARATOR , '/' , dirname ( dirname ( dirname ( __DIR__ ) ) ) ) ; $ file = str_replace ( DIRECTORY_SEPARATOR , '/' , $ info [ 0 ] [ 'file' ] ) ; $ instance :: $ timerArr [ ] = array ( 'file' => str_replace ( $ projectDir , '' , $ file ) , 'counter' => $ instance :: $ counter , 'line' => $ info [ 0 ] [ 'line' ] , 'time' => microtime ( 1 ) , 'memory' => memory_get_usage ( true ) , 'message' => $ message ) ; }
Add a new point to the timer
 @param string $message
Add a new point to the timer @param string $message