New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adiafora/measure

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adiafora/measure

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

package
Source
Packagist
Version
1.1
Version published
Total downloads
28
Maintainers
1
Created
Source

Measure

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.

Keywords

debug

FAQs

Package last updated on 24 Jan 2022

Related posts