PHPackages                             speedy/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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. speedy/timer

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

speedy/timer
============

A simple timer for measuring the speed of a script.

v1.0.3(8y ago)02.8k↑353.8%1MITPHPPHP &gt;=7.1.0

Since Jul 3Pushed 8y ago1 watchersCompare

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

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

[![Build Status](https://camo.githubusercontent.com/3396de7bc455b590a204f0f6f01346f758cb0e24e39ed0d0e9abd1e1c80ff646/68747470733a2f2f7472617669732d63692e6f72672f746b6c696e65722f7370656564792d74696d65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tkliner/speedy-timer)

Speedy Timer
============

[](#speedy-timer)

Speedy Timer is a package component for script runtime measurement that may be used for debugging applications within system development.

Requirements
------------

[](#requirements)

- &gt;= php 7.1

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

[](#installation)

```
$ composer require speedy/timer
```

Usage
-----

[](#usage)

Basic usage for activating the measurement of the runtime script:

```
require_once __DIR__ . '/vendor/autoload.php';

use Speedy\Timer\Timer;

$timer = new Timer();
$timer->start();
// some code
$item = $timer->stop();

var_dump($item->getTime()); // show run-time in milliseconds
var_dump($item->getTime(true)); // show run-time in microseconds
```

You can use shortcut to create the Timer class instance:

```
require_once __DIR__ . '/vendor/autoload.php';

$timer = timer()->start();
//some code
$item = $timer->stop();

var_dump($item->getTime());
```

To track the duration of different parts of the script it is possible to name each item in the following way:

```
require_once __DIR__ . '/vendor/autoload.php';

$timer = timer()->start('test1');
//some code
$timer = timer()->start('test2');
//some code
$item = $timer->stop('test1);
var_dump($item->getTime());
//some code
$item2 = $timer->stop('test2);
var_dump($item2->getTime())
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~0 days

Total

4

Last Release

3276d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6005847?v=4)[Tomáš Kliner](/maintainers/tkliner)[@tkliner](https://github.com/tkliner)

---

Top Contributors

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

---

Tags

debugmeasurephptimer

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[georgringer/backend-debug

Some debug helper for the TYPO3 backend

2032.4k1](/packages/georgringer-backend-debug)[spatie/craft-ray

Easily debug CraftCMS projects

1638.4k](/packages/spatie-craft-ray)

PHPackages © 2026

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