MCPcopy Create free account
hub / github.com/ActiveState/code / run

Method run

recipes/Python/114644_scheduler/recipe-114644.py:16–24  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

14 self._action, self._loopdelay, self._initdelay )
15
16 def run( self ):
17 if self._initdelay:
18 time.sleep( self._initdelay )
19 self._runtime = time.time()
20 while self._running:
21 start = time.time()
22 self._action()
23 self._runtime += self._loopdelay
24 time.sleep( self._runtime - start )
25
26 def stop( self ):
27 self._running = 0

Callers 7

recipe-81612.pyFile · 0.45
recipe-81614.pyFile · 0.45
recipe-81535.pyFile · 0.45
recipe-81613.pyFile · 0.45
recipe-181905.pyFile · 0.45
recipe-81615.pyFile · 0.45
recipe-81254.pyFile · 0.45

Calls 2

sleepMethod · 0.45
timeMethod · 0.45

Tested by

no test coverage detected