# PHPExecutionTimer __Utility class for execution time measurement__ ![last release](https://badgen.net/packagist/v/darkelfe14728/executiontimer?label=Last%20release) ![licence](https://badgen.net/packagist/license/darkelfe14728/executiontimer?color=red) ![nb releases](https://badgen.net/packagist/dt/darkelfe14728/executiontimer?color=green) A utility class to measure and display execution time. Include step time measurement. ## Installation ``` composer require darkelfe14728/executiontimer ``` [comment]: <> (## Description) [comment]: <> (At first, create a new CommandLine with program name and description. Add options and values by using respectively _addOption_ and _addValue_.) [comment]: <> (Default options for help (-h / --help) and version (--version) can be add with _addDefaultArguments_ and use _treatDefaultArguments_ for launching associated treatments.) [comment]: <> (Treat script arguments with _parse_ : return an object of variables.) [comment]: <> (## Example ) [comment]: <> (```php) [comment]: <> ( (use CommandLine\CommandLine;) [comment]: <> (use CommandLine\Argument\Option\Flag;) [comment]: <> (use CommandLine\Argument\Parser\StringParser;) [comment]: <> (use CommandLine\Argument\Value\Value;) [comment]: <> ($cmdline = new CommandLine('Checker', 'File checker', 'php checker.php');) [comment]: <> ($cmdline->addDefaultArguments();) [comment]: <> ($cmdline->addOption(new Flag('enhanced', false, 'Deep check ?'));) [comment]: <> ($cmdline->addValue(new Value('path', 'File path', new StringParser()));) [comment]: <> (var_dump($args = $cmdline->parse());) [comment]: <> ($cmdline->treatDefaultArguments($args);) [comment]: <> (```) [comment]: <> (Would display something like that : ) [comment]: <> ( class stdClass#13 (1) {) [comment]: <> ( public $enhanced => bool(false)) [comment]: <> ( public $path => string("my/path/to/a/file")) [comment]: <> ( })