public function time(string $name, string $message = null): TimerContract
    {
        $id = isset($this->timers[$name]) ? \uniqid($name) : $name;

        $this->timers[$id] = $this->createTimer($name, \microtime(true), $message);

        return $this->timers[$id];
    }
public function time(string $name, string $message = null): TimerContract
    {
        $id = isset($this->timers[$name]) ? \uniqid($name) : $name;

        $this->timers[$id] = $this->createTimer($name, \microtime(true), $message);

        return $this->timers[$id];
    }
public function time ( string $ name , string $ message = null ) : TimerContract { $ id = isset ( $ this -> timers [ $ name ] ) ? \ uniqid ( $ name ) : $ name ; $ this -> timers [ $ id ] = $ this -> createTimer ( $ name , \ microtime ( true ) , $ message ) ; return $ this -> timers [ $ id ] ; }
Time a process.

@param  string       $name
@param  string|null  $message

@return \Laravie\Profiler\Contracts\Timer
Time a process .