mirror of https://github.com/gsi-upm/senpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
322 B
Python
14 lines
322 B
Python
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)
|
|
|
|
def analyse(self, *args, **kwargs):
|
|
sleep(float(kwargs.get("timeout", self.timeout)))
|
|
return Results()
|