1. Go to this page and download the library: Download almasmurad/stopwatch library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
almasmurad / stopwatch example snippets
// create Stopwatch
$stopwatch = new Almasmurad\Stopwatch\Stopwatch();
// start measuring the first step
$stopwatch->start('code section #1');
//...
// start measuring the second step
$stopwatch->step('code section #2');
//...
// start measuring the third step
$stopwatch->step('code section #3');
//...
// finish measuring
$stopwatch->finish();
// output the report
$stopwatch->report();
$stopwatch = new Almasmurad\Stopwatch\Stopwatch();
//... (measured code)
$stopwatch->report();