← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #403295]: Getting time of matching operation

 

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

RaiMan proposed the following answer:
this is it:

--- getTime()
... reports the total milliseconds including eventual repetitive scans (waiting for the image to appear)

--- in the Match.toString() message
... like: M[1014,305 169x155]@S(S(0)[0,0 1920x1080]) S:1,00 C:1098,382 [15 msec]
the time in the trailing brackets show the duration of the last scan.

... and be aware: 1.1.1 has the default behavior, to first look in the place where an image was last found in case it is searched again (which usually speeds up workflow repetitions a lot). Only if it is no longer in place, it is searched in the given region. So this effect might also lead to different timing patterns.
If you do not want this behavior:
Settings.CheckLastSeen = False

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.