Class

Bench

Package: Util Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Regis VIARRE crowkait@phpboost.com Version: PHPBoost 5.2 - last update: 2016 10 24 Since: PHPBoost 1.4 - 2006 03 14 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Located at: util/Bench.class.php

This class is done to time a process easily. You choose when to start and when to stop.

Methods summary
public string
# to_string( integer $digits = 3 )

returns the number formatted with $digits floating numbers

public
# stop( )

stops the bench

public
# start( )

starts the bench

public
# get_memory_php_used( )

Returns the amount of memory, that's currently being allocated to PHP script.