PHPackages                             edbizarro/timer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. edbizarro/timer

ActiveLibrary

edbizarro/timer
===============

Measure execution time of your code

v0.1.1(7y ago)38.8k[1 PRs](https://github.com/edbizarro/timer/pulls)MITPHPPHP ^7.1.3CI failing

Since Jun 18Pushed 5y agoCompare

[ Source](https://github.com/edbizarro/timer)[ Packagist](https://packagist.org/packages/edbizarro/timer)[ RSS](/packages/edbizarro-timer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

 [![](https://raw.githubusercontent.com/edbizarro/timer/master/stopwatch.png)](https://raw.githubusercontent.com/edbizarro/timer/master/stopwatch.png)

Timer - measure execution time of your code

---

Here are a few examples on how you can use the package:

```
use Edbizarro\Timer\Timer;

$timer = Timer::start('timer01');
sleep(2);
$result = $timer->stop();

print_r($result);

// array:7 [
//   "start" => 1529506852.084
//   "end" => 1529506854.0855
//   "duration" => 2.0015239715576
//   "milliseconds" => 2001.5239715576
//   "seconds" => 2
//   "minutes" => 0
//   "hours" => 0
// ]
```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require edbizarro/timer
```

---

[![forthebadge](https://camo.githubusercontent.com/37bfc3206551784f5c22f6c97ce345b037641090b059efac8647934662eb4537/687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f636f6e7461696e732d6361742d676966732e737667)](http://forthebadge.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

2880d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a251f8a53d54b0f73dc5a82642e1fb06bf51ec36676da814fa8edd839114ceb?d=identicon)[edbizarro](/maintainers/edbizarro)

---

Top Contributors

[![edbizarro](https://avatars.githubusercontent.com/u/84926?v=4)](https://github.com/edbizarro "edbizarro (14 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/edbizarro-timer/health.svg)

```
[![Health](https://phpackages.com/badges/edbizarro-timer/health.svg)](https://phpackages.com/packages/edbizarro-timer)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
