Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Timer Laravel Package

desarrolla2/timer

Lightweight PHP timer utility for measuring execution time. Start/stop laps, track multiple timers, and get elapsed time for profiling and benchmarking small code sections. Suitable for quick performance checks during development.

View on GitHub
Deep Wiki
Context7

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon