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;
$timer = new Timer();
$timers = $timer->all();
$timer->clear();
$count = $timer->count();
$elapsed = $timer->elapsed($name);
$data = $timer->get($name);
$hasTimer = $timer->has($name);
$isStopped = $timer->isStopped($name);
$timer->remove($name);
$timer->start($name);
$timer->stop($name);
$timer->stopAll();