Skip to content

gitter-badger/Stopwatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stopwatch

Latest Version on Packagist Build Status

A Stopwatch measures consumption time of executed scripts in micro/nano/mill seconds format. It includes pause event to freeze consumption time. A stopwatch time can be named as event stopwatch name.

Installation

  1. Installation via Composer on Packagist
  2. Installation using Git GIT clone component

Changelog

Status of core:

Version State
1.0 Release version

PHP version above 7.1. Quality assurance: Unit tests provided

References

  • [Stopwatch] - A stopwatch constructor
  • [start] - Start method for stopwatch timer
  • [stop] - Stop method for stopwatch timer
  • [next] - Automatically start a new timer measurement
  • [pause] - Start freezing timer of stopwatch
  • [unpause] - Stop freezing timer of stopwatch
  • [getDuration] - Get a duration time consumption
  • [getEvent] - Fetch event name
  • [getId] - Get Id
  • [getTaskCount] - Get number of tasks executed
  • [getTimeBorn] - Get at least first time executed
  • [getPrettyPrint] - Print in a table view rendered stopwatch events

GetEvent methods

  • [getDuration] - Fetch duration of event
  • [getStart] - Get time of started event
  • [getStop] - Get time of stop event
  • [getType] - Get a type of event (run or pause)
  • [isStopped] - Check is event stopped
  • [isStarted] - Check is event started

About

Stopwatch timer execution component

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%