1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-03-11 00:26:58 +00:00

14 lines
322 B
Python
Raw Normal View History

from senpy.plugins import SenpyPlugin
from senpy.models import Results
from time import sleep
class SleepPlugin(SenpyPlugin):
def activate(self, *args, **kwargs):
sleep(self.timeout)
2015-02-23 02:13:31 +01:00
def analyse(self, *args, **kwargs):
2015-04-26 21:08:36 +02:00
sleep(float(kwargs.get("timeout", self.timeout)))
return Results()