

def _send(self, start):
    elapsed = (time() - start)
    use_ms = (self.use_ms if (self.use_ms is not None) else self.statsd.use_ms)
    elapsed = (int(round((1000 * elapsed))) if use_ms else elapsed)
    self.statsd.timing(self.metric, elapsed, self.tags, self.sample_rate)

dataset/ETHPy150Open DataDog/datadogpy/datadog/dogstatsd/base.py DogStatsd._TimedContextManagerDecorator._send/original