Documentation

timer
in package

Static timer class, internal only!

Tags
author

Stefan Seehafer aka imagine fanpress@nobody-knows.org

copyright

(c) 2011-2022, Stefan Seehafer

license

http://www.gnu.org/licenses/gpl.txt GPLv3

since
3.1.0

Table of Contents

$start  : int
Start micro time
$stop  : int
Stop micro time
cal()  : int
Calc diff, calls @see timer::stop if not called before
start()  : mixed
Start timer
stop()  : mixed
Stop timer

Properties

$start

Start micro time

private static int $start = []

$stop

Stop micro time

private static int $stop = []

Methods

cal()

Calc diff, calls @see timer::stop if not called before

public static cal([string $which = 'sys' ]) : int
Parameters
$which : string = 'sys'
Return values
int

start()

Start timer

public static start([string $which = 'sys' ]) : mixed
Parameters
$which : string = 'sys'
Return values
mixed

stop()

Stop timer

public static stop([string $which = 'sys' ]) : mixed
Parameters
$which : string = 'sys'
Return values
mixed

Search results