public function checkpoint(string $name)
    {
        $this->checkpoints[$name] = microtime(true) - end($this->checkpoints);
    }
public function checkpoint(string $name)
    {
        $this->checkpoints[$name] = microtime(true) - end($this->checkpoints);
    }
public function checkpoint ( string $ name ) { $ this -> checkpoints [ $ name ] = microtime ( true ) - end ( $ this -> checkpoints ) ; }
Adds a new named checkpoint which measures the time between now and the last checkpooint.

@param string $name
Adds a new named checkpoint which measures the time between now and the last checkpooint .