Download the PHP package bnomei/kirby3-stopwatch without Composer
On this page you can find all versions of the php package bnomei/kirby3-stopwatch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bnomei/kirby3-stopwatch
More information about bnomei/kirby3-stopwatch
Files in bnomei/kirby3-stopwatch
Package kirby3-stopwatch
Short Description Profile your Kirby 3 CMS code with precision in milliseconds (or seconds).
License MIT
Informations about the package kirby3-stopwatch
Kirby Stopwatch
Profile your Kirby CMS code with precision in milliseconds (or seconds).
Installation
- unzip master.zip as folder
site/plugins/kirby3-stopwatch
or git submodule add https://github.com/bnomei/kirby3-stopwatch.git site/plugins/kirby3-stopwatch
orcomposer require bnomei/kirby3-stopwatch
Works well with
Usage Site Method
Please read the Symfony Stopwatch Component Docs since this plugin is just a soft wrapper around it. Some Examples:
Event Duration
Event with Laps aka Periods
Usage PHP Class
You can use the provided php class in your own classes if you make sure the class is loaded before you call it. This can be done in installing this plugin using composer or in manually requiring it with Kirby's class loader.
Settings
bnomei.stopwatch. | Default | Description |
---|---|---|
precision | true |
measure microseconds as float or int seconds. |
NOTE: This plugin defaults to measuring in milliseconds but the symfony component does not.
Dependencies
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
License
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.