Timber\Helper::stop_timer PHP Метод

stop_timer() публичный статический Метод

For stopping time and getting the data
public static stop_timer ( integer $start ) : string
$start integer
Результат string
    public static function stop_timer($start)
    {
        $time = microtime();
        $time = explode(' ', $time);
        $time = $time[1] + $time[0];
        $finish = $time;
        $total_time = round($finish - $start, 4);
        return $total_time . ' seconds.';
    }