Timer Timer(
[String
$name = '']
)
|
|
Constructor
Parameters:
|
String |
$name: |
The name of the timer |
String bcsub(
String
$left, String
$right, String
$scale
)
|
|
Simulates thec php-bcsub(), in case it is not installed on your system
Parameters:
|
String |
$left: |
The left parameter |
|
String |
$right: |
The right parameter |
|
String |
$scale: |
The number of digits |
API Tags:
| Return: | The result like php-bcsub($left,$right,$scale) |
void display(
[String
$name = ''], [String
$text = '']
)
|
|
Display html
Parameters:
|
String |
$name: |
The name of the timer |
|
String |
$text: |
The plain text or as hidden html comments |
API Tags:
void dump(
[String
$text = '']
)
|
|
Dump html
Parameters:
|
String |
$text: |
The plain text or as hidden html comments |
API Tags:
String get(
[String
$name = '']
)
|
|
Get the time from started for the named timer
Parameters:
|
String |
$name: |
The name of the timer |
API Tags:
| Return: | The elapsed time formatted as '<sec><msec>' |
String getHtml(
[String
$name = ''], [String
$text = '']
)
|
|
Builds the html for a timer stamp
Parameters:
|
String |
$name: |
The name of the timer |
|
String |
$text: |
The plain text or as hidden html comments |
API Tags:
| Return: | The result as html |
Redefinition of:
- Object::getHtml()
- Returns the html for the element
String getTime(
[String
$name = '']
)
|
|
Get the current time, format and return it
Parameters:
|
String |
$name: |
The name of the timer |
API Tags:
| Return: | The time formatted as <sec><msec> |
void init(
[String
$name = '']
)
|
|
Init profiler
Parameters:
|
String |
$name: |
The name of the timer |
API Tags:
void reset(
[String
$name = '']
)
|
|
Reset the named timer
Parameters:
|
String |
$name: |
The name of the timer |
String start(
[String
$name = '']
)
|
|
Start the named timer
Parameters:
|
String |
$name: |
The name of the timer |
API Tags:
| Return: | The time formatted as <sec><msec> |
String stop(
[String
$name = '']
)
|
|
Stop the named timer
Parameters:
|
String |
$name: |
The name of the timer |
API Tags:
| Return: | The time formatted as <sec><msec> |