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

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

hcg/run-timer
=============

php程序运行时间调试工具

v1.0.0(4y ago)05MITPHPPHP &gt;=7.0

Since Dec 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/just5325/RunTimer)[ Packagist](https://packagist.org/packages/hcg/run-timer)[ RSS](/packages/hcg-run-timer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

RunTimer
========

[](#runtimer)

php 程序运行时间调试工具

### 安装

[](#安装)

```
composer require hcg/run-timer

```

### 使用示例

[](#使用示例)

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

use Hcg\RunTimer\RunTimer as RunTimer;

// 实例化
$timer = new RunTimer();
$timer->start();

# 需要执行的代码，我们这里简单的睡眠2秒，代表程序执行花费了2秒
sleep(2);

$timer->stop();
$timer->echo();

```

示例程序输出：程序运行时间为:2,000.1540毫秒

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

1603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/383f2f33430cfe8c055049f97cf3b095eae355b85c08e5c4c2db73665091cb34?d=identicon)[hcg](/maintainers/hcg)

---

Top Contributors

[![just5325](https://avatars.githubusercontent.com/u/26363339?v=4)](https://github.com/just5325 "just5325 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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