Benchmark class

The following sections explain each method of the class.

start_point


public static void start_point ( boolean $inSeconds = false)

The start_point method is the beginning of any benchmarks. Used to determine the starting point has to be measured from where to.

Parameter list
inSeconds

By default, start_point saves a string in the microsecond seconds format, where seconds are the seconds since the Unix era (January 01, 1970 00:00:00 GMT), and microseconds is the number of microseconds that have elapsed since seconds Is also expressed in seconds. If the parameter is set to true , then the method saves a float instead of a string indicating the current time in seconds since the Unix epoch began (the decimal places indicate the microseconds)


middle_point


public static void middle_point ( boolean $inSeconds = false)

This method is used for the storing intermediate results. To finish, if you want to measure a looping as an example without the benchmark can middle_point be very helpful.

Parameter list
inSeconds

By default, start_point saves a string in the microsecond seconds format, where seconds are the seconds since the Unix era (January 01, 1970 00:00:00 GMT), and microseconds is the number of microseconds that have elapsed since seconds Is also expressed in seconds. If the parameter is set to true , then the method saves a float instead of a string indicating the current time in seconds since the Unix epoch began (the decimal places indicate the microseconds)


end_point


public static void end_point ( boolean $inSeconds = false)

If you want to stop a benchmark, you call the end_point method. These stores have the current timestamp finally.

Parameter list
inSeconds

By default, start_point saves a string in the microsecond seconds format, where seconds are the seconds since the Unix era (January 01, 1970 00:00:00 GMT), and microseconds is the number of microseconds that have elapsed since seconds Is also expressed in seconds. If the parameter is set to true , then the method saves a float instead of a string indicating the current time in seconds since the Unix epoch began (the decimal places indicate the microseconds)


finish


public static float|string|array finish ( )

The method finish() evaluates the results and returns it. Depending on the calling of each of the methods return different results.