PHP Timer Trait: Measure elapsed time as a trait

Recommend this page to a friend!
  Info   Example   View files (2)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 120 All time: 9,166 This week: 364
Version License PHP version Categories
timer-trait 1GNU General Publi...5.4PHP 5, Time and Date, Traits
Description Author

This package provides a trait that measures the time that elapsed between different moments of the execution of the script.

It keeps track of the time it starts measuring the elapsed time, so later it can return the time that passed since the start time.

The trait can also return the remaining time until it reaches a given moment.

Picture of Jacob Fogg
  Performance   Level  
Name: Jacob Fogg <contact>
Classes: 7 packages by
Country: United States United States
Age: 40
All time rank: 1129153 in United States United States
Week rank: 136 13 in United States United States
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files  
File Role Description
Fogg (1 directory)

  Files  /  Fogg  
File Role Description
Util (1 directory)

  Files  /  Fogg  /  Util  
File Role Description
Timer (2 files)

  Files  /  Fogg  /  Util  /  Timer  
File Role Description
   TimerTrait.php Class The Timer Trait Class
   TraitExample.php Example A simple example class to demonstrate the functionality of the TimerTrait class.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:120
This week:0
All time:9,166
This week:364

For more information send a message to info at phpclasses dot org.