def get_clock_type(): warnings.warn("get_clock_type is deprecated - use get_clock", DeprecationWarning, stacklevel=2) result = _yappi.get_clock() result.pop('time') return result
def get_clock(): """ Returns a dict containing the OS API used for timing, the precision, the clock type, and the current tick count """ return _yappi.get_clock()
def get(self): self._clock_type = _yappi.get_clock()["type"] return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)