didweb/ratioruntime

ratio codice runtime

1.0.5 2019-07-28 17:55 UTC

README

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

Funcionamineto

use didweb\ratioruntime;


$calTime = new RatioRuntime();

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

echo "<br />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

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

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

Bedienung

use didweb\ratioruntime;

$calTime = new RatioRuntime();

// Ausführung des zu berechnenden Codes.

echo "<br />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

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

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

Operation

use didweb\ratioruntime;


$calTime = new RatioRuntime();

// Execution of the code to calculate.

echo "<br />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

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.*"
    }
}