コード例 #1
0
ファイル: yappi.py プロジェクト: pombredanne/yappi
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
コード例 #2
0
ファイル: yappi.py プロジェクト: ismasensei/yappi
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
コード例 #3
0
ファイル: yappi.py プロジェクト: pombredanne/yappi
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()
コード例 #4
0
ファイル: yappi.py プロジェクト: pombredanne/yappi
 def get(self):
     self._clock_type = _yappi.get_clock()["type"]
     return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)
コード例 #5
0
ファイル: yappi.py プロジェクト: ismasensei/yappi
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()
コード例 #6
0
ファイル: yappi.py プロジェクト: ismasensei/yappi
 def get(self):
     self._clock_type = _yappi.get_clock()["type"]
     return self.sort(DEFAULT_SORT_TYPE, DEFAULT_SORT_ORDER)