2017 © Pedro Peláez
 

library stopwatch

Very simple stopwatch capable of register multi execution times.

image

joruro/stopwatch

Very simple stopwatch capable of register multi execution times.

  • Sunday, September 4, 2016
  • by joruro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Stopwatch

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Stopwatch is a very simple tool for measuring the execution time of multiple parts of your code., (*2)

Example of usage

<?php

include('../vendor/autoload.php');

use Joruro\Enum\TimeUnits;
use Joruro\Stopwatch\Stopwatch;

$attempts = 2;
$counter = 5;
Stopwatch::start();
for ($j = 0; $j < $attempts; $j++) {
    Stopwatch::start();
    for ($i = 0; $i < $counter; $i++) {
        sleep(1);
    }
    $time = Stopwatch::stop(TimeUnits::SECONDS);
    echo "A foreach of {$counter} loops took approximately {$time} seconds\n";
}
$time = Stopwatch::stop(TimeUnits::SECONDS);
echo "{$attempts} attempts foreach of {$counter} loops took approximately {$time} seconds\n";

exit(0);

The Versions

04/09 2016

dev-develop

dev-develop

Very simple stopwatch capable of register multi execution times.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Avatar joruro

timer stopwatch

04/09 2016

dev-master

9999999-dev

Very simple stopwatch capable of register multi execution times.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Avatar joruro

timer stopwatch

04/09 2016

v1.1.2

1.1.2.0

Very simple stopwatch capable of register multi execution times.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Avatar joruro

timer stopwatch

07/02 2016

v1.0.0

1.0.0.0

Very simple stopwatch capable of register multi execution times.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar joruro

timer stopwatch

07/02 2016

v0.0.1

0.0.1.0

Very simple stopwatch capable of register multi execution times.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

by Avatar joruro

timer stopwatch