A simple PHP timer to time/benchmark operations with a short human-readable result.
MIT License
A simple timer to time/benchmark operations with a short human-readable result.
Add the package as a requirement to your composer.json
:
$ composer require andreasnij/a-timer
use ATimer\Timer;
$timer = new Timer();
// Some operations that take time
echo $timer->getDurationFormatted();
// Example output: 1.237s
Andreas Nilsson (https://github.com/andreasnij)
Licensed under the MIT License - see the LICENSE file for details.