Skip to content

A simple PHP timer to time/benchmark operations with a short human-readable result.

License

Notifications You must be signed in to change notification settings

andreasnij/a-timer

Repository files navigation

A Timer

Latest Stable Version

A simple timer to time/benchmark operations with a short human-readable result.

Installation

Add the package as a requirement to your composer.json:

$ composer require andreasnij/a-timer

Usage

use ATimer\Timer;

$timer = new Timer();

// Some operations that take time
echo $timer->getDurationFormatted();

// Example output: 1.237s

Author

Andreas Nilsson (https://github.com/andreasnij)

License

Licensed under the MIT License - see the LICENSE file for details.

About

A simple PHP timer to time/benchmark operations with a short human-readable result.

Topics

Resources

License

Stars

Watchers

Forks

Languages