LaravelPackages.net
Acme Inc.
Toggle sidebar
kraenzle-ritter/timelogger

Just a small stopwatch

95
0
v1.0.1
About kraenzle-ritter/timelogger

kraenzle-ritter/timelogger is a Laravel package for just a small stopwatch. It currently has 0 GitHub stars and 95 downloads on Packagist (latest version v1.0.1). Install it with composer require kraenzle-ritter/timelogger. Discover more Laravel packages by kraenzle-ritter or browse all Laravel packages to compare alternatives.

Last updated

timelogger

Latest Stable Version Total Downloads Latest Unstable Version License

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.

Star History Chart