Basecoat\Routing::logProfiling PHP Method

logProfiling() private method

private logProfiling ( $route_name )
    private function logProfiling($route_name)
    {
        static $log_counter = 0;
        if ($log_counter == 0) {
            $start_time = $this->profiling['start'];
        } else {
            $start_time = $this->profiling['routes'][$log_counter - 1]['end'];
        }
        $log_counter++;
        $end_time = round(microtime(true), 3);
        // Log profiling information
        $this->profiling['routes'][] = array('route' => $route_name, 'time' => round($end_time - $start_time, 4), 'start' => $start_time, 'end' => $end_time, 'seq' => $log_counter);
    }