<?php use Kiernan\Timer; require '../src/Kiernan/Timer.php'; Timer::start(); usleep(1500000); $total = Timer::stop(); echo sprintf('Script executed in %s seconds.', $total);
<?php use Kiernan\Timer; require '../src/Kiernan/Timer.php'; require '../src/Kiernan/Split.php'; Timer::start(); sleep(1); Timer::split(); sleep(2); Timer::split(); sleep(1); Timer::split(); print_r(Timer::laps());