NullTimer
class NullTimer implements TimerInterface
Implementation of TimerInterface that does not actually record any time.
Used in production to reduce overhead.
Methods
                    __construct()
        
                                            
                
            Empty constructor for forward compatibility.
                    start()
        
                                            
                
            Starts the timer.
                    stop()
        
                                            
                
            Stops the timer.
                    bool
                
                
                    isRunning()
        
                                            
                
            No description
                    float|null
                
                
                    getDuration()
        
                                            
                
            Returns the time (in seconds) the timer ran.
Details
        at         line 22
                            
    __construct()
        
    
    Empty constructor for forward compatibility.
        at         line 26
                            
    start()
        
    
    Starts the timer.
        at         line 30
                            
    stop()
        
    
    Stops the timer.
        at         line 37
                            bool
    isRunning()
        
    
    
        at         line 42
                            float|null
    getDuration()
        
    
    Returns the time (in seconds) the timer ran.
Returns null if no time has been recorded.