'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}'

def timer(self, key):

    if (key not in self._timers):
        self._timers[key] = Timer(clock=self._clock)
    return self._timers[key]
