TimeHandler
        
        extends AbstractHandler
    
    
            
            in package
            
        
    
    
    
        
            Debug time handler class
Tags
Table of Contents
- $name : string
- Name of time measurement
- $start : float
- Start time
- $stop : float
- Stop time
- __construct() : mixed
- Constructor
- getElapsed() : string
- Get elapsed time
- getName() : string
- Get name
- getStart() : float
- Get start value
- getStop() : float
- Get stop value
- hasStarted() : bool
- Determined if the timer has started
- hasStopped() : bool
- Determined if the timer has stopped
- prepare() : array<string|int, mixed>
- Prepare handler data for storage
- prepareAsString() : string
- Prepare handler data as string
- prepareHeaderAsString() : string
- Prepare header string
- setName() : AbstractHandler
- Set name
- start() : self
- Start timer
- stop() : self
- Stop timer
Properties
$name
Name of time measurement
    protected
        string
    $name
     = null
        
    
$start
Start time
    protected
        float
    $start
     = null
        
    
$stop
Stop time
    protected
        float
    $stop
     = null
        
    
Methods
__construct()
Constructor
    public
                __construct([string $name = null ][, bool $start = true ]) : mixed
        Instantiate a time handler object
Parameters
- $name : string = null
- $start : bool = true
Return values
mixed —getElapsed()
Get elapsed time
    public
                getElapsed() : string
        
    
    
        Return values
string —getName()
Get name
    public
                getName() : string
        
    
    
        Return values
string —getStart()
Get start value
    public
                getStart() : float
        
    
    
        Return values
float —getStop()
Get stop value
    public
                getStop() : float
        
    
    
        Return values
float —hasStarted()
Determined if the timer has started
    public
                hasStarted() : bool
        
    
    
        Return values
bool —hasStopped()
Determined if the timer has stopped
    public
                hasStopped() : bool
        
    
    
        Return values
bool —prepare()
Prepare handler data for storage
    public
                prepare() : array<string|int, mixed>
        
    
    
        Return values
array<string|int, mixed> —prepareAsString()
Prepare handler data as string
    public
                prepareAsString() : string
        
    
    
        Return values
string —prepareHeaderAsString()
Prepare header string
    public
                prepareHeaderAsString() : string
        
    
    
        Return values
string —setName()
Set name
    public
                setName(string $name) : AbstractHandler
        
        Parameters
- $name : string
Return values
AbstractHandler —start()
Start timer
    public
                start() : self
        
    
    
        Return values
self —stop()
Stop timer
    public
                stop() : self