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

ActiveLibrary

bedd/timer
==========

PHP timer

1.0.0(9y ago)020MITPHPPHP &gt;=5.5.0

Since Mar 6Pushed 8y ago2 watchersCompare

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

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

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/595d9a9bfdc3f1054d43a1f345eabc734f9ed48f8ee7b6b10c0601d0bf1c2657/68747470733a2f2f7472617669732d63692e6f72672f426564642f74696d65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Bedd/timer) [![Latest Stable Version](https://camo.githubusercontent.com/1681a1e130ddf1ff80e82c1cc2bd8d0196db3a8a93ce58fb4960591133b6fc83/68747470733a2f2f706f7365722e707567782e6f72672f426564642f74696d65722f762f737461626c65)](https://packagist.org/packages/Bedd/timer) [![Total Downloads](https://camo.githubusercontent.com/b54726effc35335f9ec59669e964b94cd17303e5a90c91feb663e0f6f47b5f37/68747470733a2f2f706f7365722e707567782e6f72672f426564642f74696d65722f646f776e6c6f616473)](https://packagist.org/packages/Bedd/timer) [![Latest Unstable Version](https://camo.githubusercontent.com/f84dbb970127fbfcbf5d0a618476cd79d8051ce3707fd3292f9c2527d80e643a/68747470733a2f2f706f7365722e707567782e6f72672f426564642f74696d65722f762f756e737461626c65)](https://packagist.org/packages/Bedd/timer) [![License](https://camo.githubusercontent.com/92da64edb2d95e606fb5eb6dbf6a915d9d76770a3fe30bd07af6aef73fb39219/68747470733a2f2f706f7365722e707567782e6f72672f426564642f74696d65722f6c6963656e7365)](https://packagist.org/packages/Bedd/timer) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/620296cf3f2eec0ecf9115c6c873c580f00daa0bf0293d1e7460667158981d77/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f426564642f74696d65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Bedd/timer/?branch=master)

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

[](#installation)

The best way to install this library is to use [composer](https://getcomposer.org/).

```
{
    "require": {
        "bedd/timer": "1.*"
    }
}
```

Usage
-----

[](#usage)

```
$t = new Bedd\Timer\Timer();
$t->start();

// your process
sleep(3);

$t->end();
print_r($t->getSummary());
```

Output
------

[](#output)

```
Array
(
    [status] => 3
    [start] => 1488831973.2328
    [end] => 1488831976.2334
    [total] => 3.0005979537964
    [paused] => 0
    [laps] => Array
        (
            [0] => Array
                (
                    [name] => start
                    [start] => 1488831973.2328
                    [end] => 1488831976.2334
                    [total] => 3.0006039142609
                )
        )
)
```

License
-------

[](#license)

This library is available under the [MIT license](LICENSE).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

3356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b54f13118926de8371849c48bb073511504fb33fd3f5e624bc9477bd507e824?d=identicon)[schwaen](/maintainers/schwaen)

---

Top Contributors

[![schwaen](https://avatars.githubusercontent.com/u/8160276?v=4)](https://github.com/schwaen "schwaen (10 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

performancetimerbenchmark

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)[ayesh/php-timer

High-resolution and monotonic stop-watch for all your needs. Supports timer start, pause, resume, stop, read, and minimal conversion.

22226.4k11](/packages/ayesh-php-timer)[jsanc623/phpbenchtime

A lightweight benchmark timer and lap profiler for PHP.

2539.1k1](/packages/jsanc623-phpbenchtime)[dragon-code/benchmark

Simple comparison of code execution speed between different options

11934.7k5](/packages/dragon-code-benchmark)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.4k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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