Esempio n. 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
Esempio n. 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
Esempio n. 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()
Esempio n. 4
0
 def get(self):
     self._clock_type = _yappi.get_clock()["type"]
     return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)
Esempio n. 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()
Esempio n. 6
0
 def get(self):
     self._clock_type = _yappi.get_clock()["type"]
     return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)