Documentation

Horde_Support_Timer
in package

Simple interface for timing operations.

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

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

Tags
category

Horde

license

http://www.horde.org/licenses/bsd

Table of Contents

$_idx  : int
Current index for stacked timers.
$_start  : array<string|int, mixed>
Holds the starting timestamp.
pop()  : float
Pop the latest timer start and return the difference with the current time.
push()  : mixed
Push a new timer start on the stack.

Properties

$_idx

Current index for stacked timers.

protected int $_idx = 0

$_start

Holds the starting timestamp.

protected array<string|int, mixed> $_start = array()

Methods

pop()

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

public pop() : float
Return values
float

The amount of time passed.

push()

Push a new timer start on the stack.

public push() : mixed
Return values
mixed

Search results