adiafora/measure

The package for measuring the time spent on script execution. Also to measure the memory expended

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

1.1 2022-01-24 17:17 UTC

This package is auto-updated.

Last update: 2024-10-24 23:28:12 UTC


README

A simple package for measuring the time spent on script execution. Also to measure the memory spent.

Install

Run:

    composer require --dev adiafora/measure

Usage

Usage facade

First you need to call the timeStart() method.

    timeStart();

From this moment, the countdown of time and memory spent will begin. Next, you can call the timeDump() or timeDd() method anywhere in your application.

    timeDump();
    // or
    timeDd();

You can continue to call one of the information output methods. You can also restart the counter by calling the timeStart() method.

License

The MIT License (MIT). Please see License File for more information.