StopwatchPeriod
    
            
            in package
            
        
    
    
    
Represents a Period for an Event.
Tags
Table of Contents
Methods
- __construct() : mixed
 - __toString() : string
 - getDuration() : int|float
 - Gets the time spent in this period in milliseconds.
 - getEndTime() : int|float
 - Gets the relative time of the end of the period in milliseconds.
 - getMemory() : int
 - Gets the memory usage in bytes.
 - getStartTime() : int|float
 - Gets the relative time of the start of the period in milliseconds.
 
Methods
__construct()
    public
                    __construct(int|float $start, int|float $end[, bool $morePrecision = false ]) : mixed
    Parameters
- $start : int|float
 - 
                    
The relative time of the start of the period (in milliseconds)
 - $end : int|float
 - 
                    
The relative time of the end of the period (in milliseconds)
 - $morePrecision : bool = false
 - 
                    
If true, time is stored as float to keep the original microsecond precision
 
__toString()
    public
                    __toString() : string
    Return values
stringgetDuration()
Gets the time spent in this period in milliseconds.
    public
                    getDuration() : int|float
    Return values
int|floatgetEndTime()
Gets the relative time of the end of the period in milliseconds.
    public
                    getEndTime() : int|float
    Return values
int|floatgetMemory()
Gets the memory usage in bytes.
    public
                    getMemory() : int
    Return values
intgetStartTime()
Gets the relative time of the start of the period in milliseconds.
    public
                    getStartTime() : int|float