Login   Register  
PHP Classes
elePHPant
Icontem

PHP StopWatch Class: Measures script execution time between steps

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-06-17 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 242 This week: 1All time: 7,015 This week: 1,529Up
Version License PHP version Categories  
stop-watch 1.0.0GNU General Public Lice...5.0PHP 5, Time and Date
Description Author  

This class can measures script execution time between steps.

It can start measuring the time when a class object is created.

The class can take note of partial time for given steps and assign them a text label.

In the end it can return an array with the times it took to reach each step, as well the time between steps.

Picture of Gianluca Zanferrari
Name: Gianluca Zanferrari <contact>
Classes: 16 packages by
Country: The Netherlands The Netherlands
Age: 48
All time rank: 2709 in The Netherlands The Netherlands
Week rank: 66 Up3 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 4x

Screenshots  
  • index.png
  Files folder image Files  
File Role Description
Plain text file stopwatch.class.php Class class itself
Accessible without login Plain text file stopwatch.example.php Example example

 Version Control Unique User Downloads Download Rankings  
 0%Total:242All time:7,015
 This week:1This week:1,529Up
 User Comments (1)  
 
nice work!
4 months ago (J Diamond)
70%StarStarStarStar