PHP code example of erlangparasu / laravel-sf-stopwatch
1. Go to this page and download the library: Download erlangparasu/laravel-sf-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/ */
erlangparasu / laravel-sf-stopwatch example snippets
sf_stopwatch()->x();
echo 'Processing';
sf_stopwatch()->x();
sleep(5); // example simulate long running task
sf_stopwatch()->x();
echo 'Done';
sf_stopwatch()->x();
[2021-10-18 11:30:18] local.DEBUG: stopwatch: ["default/watch_9KAH2MJ6_1: 22.00 MiB - 37 ms"]
[2021-10-18 11:30:23] local.DEBUG: stopwatch: ["default/watch_9KAH2MJ6_2: 22.00 MiB - 5031 ms"]
[2021-10-18 11:30:24] local.DEBUG: stopwatch: ["default/watch_9KAH2MJ6_3: 22.00 MiB - 25 ms"]