2017 © Pedro Peláez
 

library timer

A simple code execution timing class

image

triplei/timer

A simple code execution timing class

  • Friday, September 16, 2016
  • by danklassen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

timer

a simple timer class for php code performance testing, (*1)

Example

use TripleI\Timer\Timer;

// start the timer
Timer::start();

/* some expensive code here */
// let's see how long it took to execute
Timer::tick('did some fancy stuff');

/* more expensive code here */
// let's see how long it was since the timer initially started
Timer::tick('did more fancy stuff');

// more code to time here. This time we will output a relative timestamp since the last ::tick() as well
Timer::tick('relative timer', true);

// output the end timing
Timer::done();

sample output, (*2)

0.27108597755432 - did some fancy stuff
0.47066617012024 - did more fancy stuff
0.84685397148132 - (0.37618780136108) relative timer
0.84687614440918 - Done 

The Versions

16/09 2016

dev-master

9999999-dev

A simple code execution timing class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

timer performance timing

16/09 2016

1.0.0

1.0.0.0

A simple code execution timing class

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

timer performance timing