Download the PHP package nullform/app-timer without Composer
On this page you can find all versions of the php package nullform/app-timer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nullform/app-timer
More information about nullform/app-timer
Files in nullform/app-timer
Download nullform/app-timer
More information about nullform/app-timer
Files in nullform/app-timer
Vendor nullform
Package app-timer
Short Description Timer with nested intervals, execution time measurement
License MIT
Homepage https://github.com/nullform/app-timer
Package app-timer
Short Description Timer with nested intervals, execution time measurement
License MIT
Homepage https://github.com/nullform/app-timer
Please rate this library. Is it a good library?
Informations about the package app-timer
AppTimer
Timer for PHP apps with nested intervals.
Installation
composer require nullform/app-timer
Usage
Basic usage
Nested intervals
You can create new (nested) intervals within others.
Additional information for timer/interval
You can add additional information for the timer/interval to be reflected in the report.
Report
The report can be generated as a human-readable string or in JSON format. You can save the report to a file.
Methods
Timer
- Timer::__construct(string $description = "", array $extras = [])
- Timer::start(string $description, array $extras = []): Interval
- Timer::stop(array $extras = []): ?Interval
- Timer::stopAll(): void
- Timer::report(): Report
Interval
- Interval::extras(): Extras
Extras
- Extras::add(string $key, string $value): int
- Extras::remove(string $key): int
- Extras::get(): array
- Extras::getOne(string $key): ?string
Report
- Report::longestInterval(): ?Interval
- Report::toString(): string
- Report::toJSON(): string
- Report::extras(): Extras
All versions of app-timer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
ext-bcmath Version *
ext-json Version *
ext-bcmath Version *
ext-json Version *
The package nullform/app-timer contains the following files
Loading the files please wait ....