PHPackages                             kanel/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. kanel/timer

ActiveLibrary

kanel/timer
===========

A simple PHP timer that allows to benchamrk the code

1.0.0(9y ago)01221PHPPHP &gt;=7.0

Since Apr 2Pushed 9y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (1)

[![build](https://camo.githubusercontent.com/267e35149be75246059447e3cda2ec1ea780351c0f31f479a7ee74315e077b17/68747470733a2f2f7472617669732d63692e6f72672f656c6b6161646b612f54696d65722e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/267e35149be75246059447e3cda2ec1ea780351c0f31f479a7ee74315e077b17/68747470733a2f2f7472617669732d63692e6f72672f656c6b6161646b612f54696d65722e7376673f6272616e63683d6d6173746572)

A simple Timer to benchmark functions or code execution duration

\#How it works :

- Start the timer

    ```
        Timer::start();

    ```
- Mark a place as a lap (the timer will continue counting time after returning the difference between the start and this lap)

    ```
        $duration = Timer::lap();

    ```

    where $duration is in milliseconds
- If you want the duration between this lap and the last one, send this constant as a parameter:

    ```
        $duration = Timer::lap(Timer::FROM_LAST_LAP);

    ```
- To stop the time and get the duration from the beginning (the start)

    ```
        $duration = Timer::stop();

    ```
- To stop the time and get the duration from the last lap

    ```
        $duration = Timer::stop(Timer::FROM_LAST_LAP);

    ```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3331d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3215e882ee8ae39a8b904d0958420f68bf23b2cf0e22175d5a61513f98e6ef64?d=identicon)[elkaadka](/maintainers/elkaadka)

---

Top Contributors

[![elkaadka](https://avatars.githubusercontent.com/u/24205608?v=4)](https://github.com/elkaadka "elkaadka (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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