Download the PHP package primus852/simple-stopwatch without Composer
On this page you can find all versions of the php package primus852/simple-stopwatch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download primus852/simple-stopwatch
More information about primus852/simple-stopwatch
Files in primus852/simple-stopwatch
Download primus852/simple-stopwatch
More information about primus852/simple-stopwatch
Files in primus852/simple-stopwatch
Vendor primus852
Package simple-stopwatch
Short Description Simple Stopwatch in PHP
License GPL-3.0-or-later
Package simple-stopwatch
Short Description Simple Stopwatch in PHP
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package simple-stopwatch
simple-stopwatch
A simple Stopwatch utility for PHP
Usage
Start the Stopwatch
$start = StopWatch::start();
Default Output
$start = StopWatch::start();
sleep(3); // Sleep 3 seconds for testing
$end = Stopwatch::stop($start);
echo 'Elapsed: '.$end; //Elapsed: 0 hours, 0 minutes and 3 seconds
Specify Output format
$start = StopWatch::start();
sleep(3); // Sleep 3 seconds for testing
$end = Stopwatch::stop($start, true, 's');
echo 'Elapsed Seconds: '.$end; //Elapsed Seconds: 3
Get current timestamp including microseconds
$current = StopWatch::current();
echo $current; //2018-10-04 10:37:30.271700
All versions of simple-stopwatch with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package primus852/simple-stopwatch contains the following files
Loading the files please wait ....