original_string: public function time($key, \Closure $fn, $sampleRate = 1)
      {
          $this->startTiming($key);
          $return = $fn();
          $this->endTiming($key, $sampleRate);
          return $return;
      }
code: public function time($key, \Closure $fn, $sampleRate = 1)
      {
          $this->startTiming($key);
          $return = $fn();
          $this->endTiming($key, $sampleRate);
          return $return;
      }
code_tokens: public function time ( $ key , \ Closure $ fn , $ sampleRate = 1 ) { $ this -> startTiming ( $ key ) ; $ return = $ fn ( ) ; $ this -> endTiming ( $ key , $ sampleRate ) ; return $ return ; }
docstring: Executes a Closure and records it's execution time and sends it to StatsD
  returns the value the Closure returned
  
  @param string $key
  @param \Closure $fn
  @param int|float $sampleRate the rate (0-1) for sampling.
  @return mixed
docstring_tokens: Executes a Closure and records it s execution time and sends it to StatsD returns the value the Closure returned