Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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()
Beispiel #4
0
 def get(self):
     self._clock_type = _yappi.get_clock()["type"]
     return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)
Beispiel #5
0
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()
Beispiel #6
0
 def get(self):
     self._clock_type = _yappi.get_clock()["type"]
     return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)