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. speedy/timer

ActiveLibrary

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

A simple timer for measuring the speed of a script.

v1.0.3(8y ago)02.6k—0%MITPHPPHP &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 today

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

[![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

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

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

3183d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9000d19d73d72f3e2c40d4336d8ea9531ab7874916fc91c092b871ad3ffcdd5?d=identicon)[tkliner](/maintainers/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)
```

PHPackages © 2026

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