Open ns3777k opened 4 years ago
Hey!
What do you think about adding a helper method observeExecution to Histogram class:
observeExecution
Histogram
public function observeExecution(callable $fn, array $labels = []): void { $start = microtime(true); $fn(); $duration = microtime(true) - $start; $this->observe($duration, $labels); }
Can make a PR.
Hey!
What do you think about adding a helper method
observeExecution
toHistogram
class:Can make a PR.