mechanize - perl how to find time for http request completion -


i have form fill , on submit, return result. now, want calculate time taken fulfill request ie time when result got displayed-time clicked submit.

i have no idea, how so. please feel free use module. dont know parameter use check response page displayed. have used reading title of result page check response displayed correctly.

my code:

use www::mechanize; use lwp::useragent; $m = www::mechanize->new(); $m->get( "http://en.wikipedia.org/wiki/main_page" ); $m->submit_form(     form_number => 1,     fields    => { search  => 'honey', },     button    => 'go'  #my time1 should start @ moment ); #my time 2 should recorded result page displayed, dont know use time $tmp=$m->title; print "$tmp\n"; 

you use www::mechanize::timed


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -