sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33095
Re: [Question #268175]: Loop two different actions in Sikuli forever
Question #268175 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268175
Status: Open => Answered
RaiMan proposed the following answer:
now = time.time()
in5min = now + 5 * 60 * 1000
while time.time() < in5min:
the granularity of time.time() is milliseconds. hence 5 * 60 * 1000 are
5 minutes
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.