PHP code example of fyre / timer

1. Go to this page and download the library: Download fyre/timer 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/ */

    

fyre / timer example snippets


use Fyre\Utility\Timer;

$timers = Timer::all();

Timer::clear();

$timerCount = Timer::count();

$elapsed = Timer::elapsed($name);

$timer = Timer::get($name);

$hasTimer = Timer::has($name);

$isStopped = Timer::isStopped($name);

$removed = Timer::remove($name);

Timer::start($name);

Timer::stop($name);

Timer::stopAll();