\Horde_Support_Timer

Simple interface for timing operations.

$t = new Horde_Support_Timer; $t->push(); $elapsed = $t->pop();

Copyright 1999-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
push()
pop()
No public properties found
No constants found
No protected methods found
$_start
$_idx
N/A
No private methods found
No private properties found
N/A

Properties

$_start

$_start : array

Holds the starting timestamp.

Type

array

$_idx

$_idx : integer

Current index for stacked timers.

Type

integer

Methods

push()

push() 

Push a new timer start on the stack.

pop()

pop() : float

Pop the latest timer start and return the difference with the current time.

Returns

float —

The amount of time passed.