core/Benchmark – Kohana API 2.3 Documentation

system/core/Benchmark.php

Class: Benchmark

final class Benchmark

Simple benchmarking.


Methods

Benchmark :: start

public static function start

Set a benchmark start point.

Parameters:

string name
benchmark name

Return: void


Benchmark :: stop

public static function stop

Set a benchmark stop point.

Parameters:

string name
benchmark name

Return: void


Benchmark :: get

public static function get

Get the elapsed time between a start and stop.

Parameters:

string name
benchmark name, TRUE for all
integer decimals
(int 4) number of decimal places to count to

Return: array