Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Jyxo
Timer
PHP Class Jyxo\Timer
Author:
Štěpán Svoboda
Author:
Matěj Humpál
Datei anzeigen
Open project: jyxo/php
Class Usage Examples
Public Methods
Method
Description
start
(
string
$name
= '' ) :
string
Starts measuring. Returns timer name.
stop
(
string
$name
) :
float
Returns the time difference in seconds.
timer
( ) :
float
Returns the time form the last function call.
Method Details
start()
public
static
method
Starts measuring. Returns timer name.
public
static
start
(
string
$name
= '' ) :
string
$name
string
Custom timer name
return
string
stop()
public
static
method
Returns the time difference in seconds.
public
static
stop
(
string
$name
) :
float
$name
string
Timer name
return
float
timer()
public
static
method
In case of first function call, function returns 0.
public
static
timer
( ) :
float
return
float