CheHax scribbled on 4/20/05 11:30 AM:
> Hello there,
> It's me again, and this time I'm writting a PERL asp script to avoid
> using the swish-e.exe directly and to be able to run concurrent
> searches ;)
> I am wondering : is there a way to get the time it took for the search
> such as the number of hits.
> I use :
> my $hits = $results->Hits;
> and I am looking for something like if ever it exists :
> my $time = $result->TimeTaken;
> Otherwise, what's my solution ? Run a timer in my PERL script starting
> before the search and ending right after it ?
the latter. I use the Time::HiRes module to do that. Look at the swish.cgi
example in the distribution for an example.
Peter Karman . http://peknet.com/ . peter(at)not-real.peknet.com
Received on Wed Apr 20 10:59:19 2005