Download the PHP package bita-sk/wall-timer without Composer
On this page you can find all versions of the php package bita-sk/wall-timer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bita-sk/wall-timer
More information about bita-sk/wall-timer
Files in bita-sk/wall-timer
Download bita-sk/wall-timer
More information about bita-sk/wall-timer
Files in bita-sk/wall-timer
Vendor bita-sk
Package wall-timer
Short Description Simple library for count script execution time
License MIT
Package wall-timer
Short Description Simple library for count script execution time
License MIT
Please rate this library. Is it a good library?
Informations about the package wall-timer
Wall Timer
Script run time measurement library
- support three languages for output text czech, english, german, russian
- include unit tests
- the option to set the output display
- include autoload class for non-use composer
Default
- language -> english
- echo output -> true
- time output -> seconds
Usage
/* Init wall timer */
$wallTimer = new WallTimer();
/* Begin measuring */
$wallTimer->start()
/* Script to be measured */
sleep(2);
/* End measuring */
$wallTimer->end()
Output:
Your script running 2 seconds
Result time of measuring
// Time output in minutes
$wall->getTotalTime();
Change language
// Set czech language
$wall->setOutputLanguage("cs");
- ru - for russian
- cs - for czech
- en - for english
Result rounding
$wall->setOutputPrecision(10);
Output:
Your script running 2.0001149178 seconds
Change time output
// Time output in minutes
$wall->setTimeOutput("m");
- s - for seconds
- m - for minutes
- h - for hours
Turn off echo output
// Time output in minutes
$wall->setAllowEchoOutput(false);
All versions of wall-timer with dependencies
PHP Build Version
Package Version
The package bita-sk/wall-timer contains the following files
Loading the files please wait ....