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