time_taken_ms = end_time.microseconds / 1000
if _statsd:
    self.stats.timing('func.runtime.%s.%s' % (class_name, method_name),
        time_taken_ms)
Is there a python version for the JVM based metrics library