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
Post a Comment