public function addTime($function, $start_time, $task)
    {
        if (!($function = trim((string) $function))) {
            return; // Not possible.
        }
        if (($start_time = (float) $start_time) <= 0) {
            return; // Not possible.
        }
        if (($end_time = (float) microtime(true)) <= 0) {
            return; // Not possible.
        }
        if (!($task = trim((string) $task))) {
            return; // Not possible.
        }
        $time                   = number_format($end_time - $start_time, 5, '.', '');
        $this->times[$function] = compact('function', 'time', 'task');
    }
public function addTime($function, $start_time, $task)
    {
        if (!($function = trim((string) $function))) {
            return; // Not possible.
        }
        if (($start_time = (float) $start_time) <= 0) {
            return; // Not possible.
        }
        if (($end_time = (float) microtime(true)) <= 0) {
            return; // Not possible.
        }
        if (!($task = trim((string) $task))) {
            return; // Not possible.
        }
        $time                   = number_format($end_time - $start_time, 5, '.', '');
        $this->times[$function] = compact('function', 'time', 'task');
    }
public function addTime ( $ function , $ start_time , $ task ) { if ( ! ( $ function = trim ( ( string ) $ function ) ) ) { return ; // Not possible. } if ( ( $ start_time = ( float ) $ start_time ) <= 0 ) { return ; // Not possible. } if ( ( $ end_time = ( float ) microtime ( true ) ) <= 0 ) { return ; // Not possible. } if ( ! ( $ task = trim ( ( string ) $ task ) ) ) { return ; // Not possible. } $ time = number_format ( $ end_time - $ start_time , 5 , '.' , '' ) ; $ this -> times [ $ function ] = compact ( 'function' , 'time' , 'task' ) ; }
Logs a new time entry.

@since 150315 Enhancing debugger.

@api This method is available for public use.

@param string $function   Caller.
@param float  $start_time Start time; via `microtime(TRUE)`.
@param string $task       Description of the task(s) performed.
Logs a new time entry .