Summary
- File
- Package hierarchy Util
- Class hierarchy \Bench
This class is done to time a process easily. You choose when to start and when to stop.
This class is done to time a process easily. You choose when to start and when to stop.
to_string(integer $digits = 3) : string
returns the number formatted with $digits floating numbers
integer | $digits | the desired display precision |
the formatted duration
None found |
stop()
stops the bench
None found |
start()
starts the bench
None found |
get_memory_php_used()
Returns the amount of memory, that's currently being allocated to PHP script.
None found |
get_delta_duration()
None found |
get_microtime() : float
static |
computes the time with a microsecond precision |