← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #166167]: Loop for a fixed time

 

Question #166167 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/166167

    Status: Open => Answered

RaiMan proposed the following answer:
start = time.time()
end = start + 60
while True:
    # some code
    if time.time() > end: break
# first statement after loop

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.