MCPcopy Create free account
hub / github.com/secdev/scapy / __init__

Method __init__

scapy/automaton.py:297–305  ·  view source on GitHub ↗
(self, time, prio=0, autoreload=False)

Source from the content-addressed store, hash-verified

295
296class Timer():
297 def __init__(self, time, prio=0, autoreload=False):
298 # type: (Union[int, float], int, bool) -> None
299 self._timeout = float(time) # type: float
300 self._time = 0 # type: float
301 self._just_expired = True
302 self._expired = True
303 self._prio = prio
304 self._func = _StateWrapper()
305 self._autoreload = autoreload
306
307 def get(self):
308 # type: () -> float

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

_StateWrapperClass · 0.85

Tested by

no test coverage detected