SkillAgentSearch skills...

Timer

This script works as simple timer control to your app

Install / Use

/learn @desarrolla2/Timer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Timer

This script works as simple timer control to your app

Build Status

Latest Stable Version Total Downloads

Installation

With Composer

It is best installed it through packagist by including desarrolla2/timer in your project composer.json require:

    "require": {
        // ...
        "desarrolla2/timer":  "*"
    }

Without Composer

You can also download it from [Github] (https://github.com/desarrolla2/Timer), but no autoloader is provided so you'll need to register it with your own PSR-4 compatible autoloader.

Usage

<?php
require __DIR__ . '/../vendor/autoload.php';

use Desarrolla2\Timer\Timer;

$timer = new Timer();

$timer->mark('Starting a mark previous to operations');

foreach ($aLotOfOperations as $operation) {
    $timer->mark('Start operation '.$operation->name);
    
    $operation->doSomething();
    
    $timer->mark('End operation '.$operation->name);
}

$timer->mark('Ended a mark previous to operations');

Formatting

// ..

Contact

You can contact with me on @desarrolla2.

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated4y ago
Forks1

Languages

PHP

Security Score

70/100

Audited on Nov 16, 2021

No findings