PHPackages                             coercive/chronos - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. coercive/chronos

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

coercive/chronos
================

Coercive Chronos Log Utility

2.0.1(7y ago)11.4kMITPHPPHP &gt;=5.4.0

Since Jul 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Coercive/Chronos)[ Packagist](https://packagist.org/packages/coercive/chronos)[ Docs](http://coercive.fr)[ RSS](/packages/coercive-chronos/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Coercive Chronos Log Utility
============================

[](#coercive-chronos-log-utility)

The Chronos Log Utility allows you to accurately measure the execution time of a script, and that from the server startup.

Get
---

[](#get)

```
composer require coercive/chronos

```

Usage
-----

[](#usage)

```
use Coercive\Utility\Chronos

# Monitor a sleep
Chronos::start('sleep');
sleep(2);
Chronos::stop('sleep');

# Monitor some code process
Chronos::start('sha1');
$datas = [];
foreach (range(0,1000000) as $i) {
	$datas[] = sha1($i);
}
Chronos::stop('sha1');

# Monitor an other code process
Chronos::start('concat');
foreach($datas as &$data) {
	$data .= '_add_datas_' . rand(0,1000);
}
Chronos::stop('concat');

# Monitor an other code process
Chronos::start('rand_waits');
foreach (range(0,5) as $secondes) {
	sleep($secondes);
	Chronos::lap('sleeps', 'Waiting ' . $secondes . ' secondes');
}
Chronos::stop('rand_waits');

# And now : retrieve monitoring datas !

# Full diff of all process
error_log(print_r(Chronos::diff(), true));

# Diff of sha1 process
error_log(print_r(Chronos::diff('sha1'), true));

# Diff of concat process
error_log(print_r(Chronos::diff('concat'), true));

# Retrieve full datas as array
error_log(print_r(Chronos::get(), true));
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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 ~211 days

Total

5

Last Release

2743d ago

Major Versions

1.0.2 → 2.0.02018-11-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/382fe3908a468855e2bbaa434af73668f9c74bf5f98448c8e437fc6736044de8?d=identicon)[Coercive](/maintainers/Coercive)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/coercive-chronos/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.1k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M93](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M136](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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