PHPackages                             temant/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. temant/timer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

temant/timer
============

v1.0.0(1y ago)08PHP

Since Mar 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Slvstar/Temant-Timer)[ Packagist](https://packagist.org/packages/temant/timer)[ RSS](/packages/temant-timer/feed)WikiDiscussions main Synced 3mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Timer Library
=============

[](#timer-library)

Overview
--------

[](#overview)

The **Timer** library provides a simple and efficient way to measure the execution time of a block of code in various time units. It supports measuring execution time in seconds, milliseconds, or microseconds.

Features
--------

[](#features)

- Measure execution time using a closure or callable function.
- Supports different time units: seconds, milliseconds, microseconds.
- Lightweight and easy to use.

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

[](#installation)

```
composer require temant/timer
```

Usage
-----

[](#usage)

```
use Temant\Timer\Timer;
use Temant\Timer\TimeUnitEnum;

$executionTime = Timer::measure(function () {
    sleep(1); // Simulating a delay
}, TimeUnitEnum::MILLISECONDS);

echo "Execution time in milliseconds: $executionTime";
```

License
-------

[](#license)

This project is licensed under the MIT License. See the `LICENSE` file for details.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance42

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

480d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77153715?v=4)[Temant](/maintainers/Slvstar)[@Slvstar](https://github.com/Slvstar)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mydnic/laravel-kustomer

A fully featured feedback component for Laravel, gather user feedbacks, chat, etc

41351.8k1](/packages/mydnic-laravel-kustomer)

PHPackages © 2026

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