(self, key)
return self._timers[key]
Gets a timer based on a key, creates a new one if it does not exist.

        :param key: name of the metric
        :type key: C{str}

        :return: L{Timer}
Gets a timer based on a key, creates a new one if it does not exist.
Gets a timer based on a key creates a new one if it does not exist .
def timer(self, key):
        """
        Gets a timer based on a key, creates a new one if it does not exist.

        :param key: name of the metric
        :type key: C{str}

        :return: L{Timer}
        """
        if key not in self._timers:
            self._timers[key] = Timer(clock=self._clock, sink=self.create_sink())
        return self._timers[key]
def timer ( self , key ) : if key not in self . _timers : self . _timers [ key ] = Timer ( clock = self . _clock , sink = self . create_sink ( ) ) return self . _timers [ key ]