From: Phillip Gawlowski Date: 2010-12-22T16:47:06+09:00 Subject: Re: how to know a search result is successfully displayed through its source codes On Wed, Dec 22, 2010 at 3:02 AM, Fan Jin wrote: > > Yes, the library I am using here is watir, but the two times which I > caught from click and result return are properly not right, they are > identical even the interface's response time is longer than 2s. > The method I used here was ping the HTTP server, once the result was > returned, the happened time was caught. > Need your more help, thanks :> Two ideas: 1) The time difference between the two actions actually *is* negligible. 2) The resolution of your system clock is too high to capture the time accurately, and thus the delta between T1 and T2 results in 0. You could check for two by trying sleep with ever smaller increments (1000 for a second, 500 for half a second, and so on), and see when you stop getting a shorter sleep() interval. -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.