The microtimer class A generic microtimer. This timer allows elapsed times to be measured down to microseconds in theory, although depending on how 'real-time' the OS is, there may well be limitations.
The microtimer works like a stopwatch. It is either ticking or it is stopped. It has a number of seconds on the clock at any one instant. It may be started, stopped or read.
Located in /timer-defs.php (line 39)
Return the micro-seconds on the clock to 2 decimal places.
Note that this is a numeric string which includes commas for the thousands. It is therefore not a float suitable for arithmetic.
Return the milli-seconds on the clock to 2 decimal places.
Note that this is a numeric string which includes commas for the thousands. It is therefore not a float suitable for arithmetic.
Return the seconds on the clock to 2 decimal places.
Note that this is a numeric string which includes commas for the thousands. It is therefore not a float suitable for arithmetic.
Return the time on the clock in a nice 'human' format. This is in the form of a string, viz: '14d 2h 12m 13s'.
Reset the timer. This zeroes the timer. If it was ticking it goes on ticking, but starting from zero.
Restart the timer. This zeroes the timer and then starts it. Has same effect as reset() but also makes sure the timer is ticking after resetting internal timer values.
Start the timer. Starts the timer ticking. If it was already ticking then there is no change in status.
Stop the timer This freezes the internal seconds value, and stops the timer from ticking.
Documentation generated by phpDocumentor 1.3.0RC3