PHPackages                             didweb/ratioruntime - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. didweb/ratioruntime

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

didweb/ratioruntime
===================

ratio codice runtime

1.0.5(6y ago)112GPL-3.0-or-laterPHPPHP &gt;=5.3

Since Jul 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Didweb/ratioruntime)[ Packagist](https://packagist.org/packages/didweb/ratioruntime)[ Docs](https://github.com/Didweb/ratioruntime)[ RSS](/packages/didweb-ratioruntime/feed)WikiDiscussions master Synced 2mo ago

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

🇪🇸 Ratio RunTime
----------------

[](#es-ratio-runtime)

Calcula el tiempo de ejecución en punto determinado a otro de la ejecución del código.

Funcionamineto
--------------

[](#funcionamineto)

```
use didweb\ratioruntime;

$calTime = new RatioRuntime();

// Ejeccucción del código a calcular.

echo "Tiempo empleado: " . $calTime->endCal();

```

Al instanciar la clase esta toma el tiempo inicial para empezar el cálculo.

Para terminar de calcular y mostrar el tiempo: `$calTime->endCal()`

Devuelve un *float* con el tiempo transcurrido desde la instanciación del código.

Instalación mediante composer
-----------------------------

[](#instalación-mediante-composer)

Usar `"didweb/ratioruntime": "1.0.*"`

Ejemplo de uso:

```
{
    "name": "didweb/name_of_your_module",
    "description": "text",
    "type": "Module",
    "authors": [
        {
            "name": "Your Name",
            "email": "your@mail.com",
            "homepage": "www.your-website.com",
            "role": "Developer"
        }
    ],
    "require": {
      "didweb/ratioruntime": "1.0.*"
    }
}

```

---

🇩🇪 Ratio Runtime
----------------

[](#de-ratio-runtime)

Berechnen Sie die Ausführungszeit zu einem bestimmten Zeitpunkt zu einem anderen Zeitpunkt der Codeausführung.

Bedienung
---------

[](#bedienung)

```
use didweb\ratioruntime;

$calTime = new RatioRuntime();

// Ausführung des zu berechnenden Codes.

echo "Zeitaufwand: " . $calTime->endCal();

```

Nach dem Instanziieren der Klasse dauert es die erste Zeit, um die Berechnung zu starten.

So beenden Sie die Berechnung und Anzeige der Uhrzeit: `$calTime->endCal()`

Gibt einen *float* mit der Zeit zurück, die seit der Instanziierung des Codes vergangen ist.

Composer-Installation
---------------------

[](#composer-installation)

Tragen `"didweb/ratioruntime": "1.0.*"`

Verwenden Sie ein Beispiel:

```
{
    "name": "didweb/name_of_your_module",
    "description": "text",
    "type": "Module",
    "authors": [
        {
            "name": "Your Name",
            "email": "your@mail.com",
            "homepage": "www.your-website.com",
            "role": "Developer"
        }
    ],
    "require": {
      "didweb/ratioruntime": "1.0.*"
    }
}

```

---

🇬🇧 Ratio RunTime
----------------

[](#gb-ratio-runtime)

Calculate the execution time at a certain point to another of the code execution.

Operation
---------

[](#operation)

```
use didweb\ratioruntime;

$calTime = new RatioRuntime();

// Execution of the code to calculate.

echo "Time spent: " . $calTime->endCal();

```

Upon instantiating the class it takes the initial time to start the calculation.

To finish calculating and displaying the time: `$calTime->endCal()`

Returns a *float* with the time elapsed since instantiation of the code.

Composer installation
---------------------

[](#composer-installation-1)

use `"didweb/ratioruntime": "1.0.*"`

Use example:

```
{
    "name": "didweb/name_of_your_module",
    "description": "text",
    "type": "Module",
    "authors": [
        {
            "name": "Your Name",
            "email": "your@mail.com",
            "homepage": "www.your-website.com",
            "role": "Developer"
        }
    ],
    "require": {
      "didweb/ratioruntime": "1.0.*"
    }
}

```

---

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~0 days

Total

6

Last Release

2479d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf4652007cd885b38677922c0e5f97f329ec2c51d610e6c825e7de0204687ad4?d=identicon)[Didweb](/maintainers/Didweb)

---

Top Contributors

[![Didweb](https://avatars.githubusercontent.com/u/3083692?v=4)](https://github.com/Didweb "Didweb (16 commits)")

---

Tags

toolcodiceratio time

### Embed Badge

![Health badge](/badges/didweb-ratioruntime/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[phing/phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1.2k21.7M876](/packages/phing-phing)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M860](/packages/bamarni-composer-bin-plugin)[clagiordano/weblibs-configmanager

weblibs-configmanager is a tool library for easily read and access to php config array file and direct read/write configuration file / object

163.5M9](/packages/clagiordano-weblibs-configmanager)

PHPackages © 2026

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