src/Client/Client.php
private function addTiming($event, $timingMethod, $node, $tags = [])
    {
        $timing = $this->getEventValue($event, $timingMethod);
        if ($timing > 0) {
            $this->timing($node, $timing, 1, $tags);
        }
    }
private function addTiming($event, $timingMethod, $node, $tags = [])
    {
        $timing = $this->getEventValue($event, $timingMethod);
        if ($timing > 0) {
            $this->timing($node, $timing, 1, $tags);
        }
    }
Factorisation of the timing method
find the value timed

@param object $event Event
@param string $timingMethod Callable method in the event
@param string $node Node
@param array  $tags Tags key => value for influxDb

@throws Exception