kraenzle-ritter / timelogger
Just a small stopwatch
Installs: 91
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/kraenzle-ritter/timelogger
Requires
- illuminate/support: ~5|~6|~7|~8
This package is auto-updated.
Last update: 2025-09-26 17:19:04 UTC
README
This is a more professional way: https://symfony.com/doc/current/components/stopwatch.html
However for the ease of logging (including the method´s name), I will leave this package available.
Installation
$ composer require kraenzle-ritter/timelogger
Usage
$stopwatch = TimeLogger::start();
...
$stopwatch->logTime('elapsed'); // named
...
$stopwatch->logTime();
logTime()
can take 2 parameters: a name, and a minimum of seconds, so that only if the time is greater than this minimum, the method will log.