Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Search Processing time

Quote Reply
Search Processing time
I got my search to display the amount of time it took to find a query, but for queries that don't have as many hits as maybe a 2 second query display 0. I know they don't take exactly 0 so i wanna be able to display decimals, like 0.342322 or something. Could someone please help me with this?

------------------
------------------------------------------
Lavon Russell
LookHard! Search
http://www.lh.yi.org
webmaster@lh.yi.org
Quote Reply
Re: Search Processing time In reply to
I _think_ there is a timing module for Apache - check CPAN and/or www.apache.org, if that is what you are running. The problem, if you will, is that the two calls to the timing routine, if you are showing less than 1 second builds, is going to consume more cpu time than the search itself!

That's a performance hit that could become significant, especially with flat file use.

Just something to think about.

Quote Reply
Re: Search Processing time In reply to
Thanks, figured it out a few days ago. I use Time::HiRes, doesn't take long to load.

------------------
------------------------------------------
Lavon Russell
LookHard! Search
www.lh.yi.org
webmaster@lh.yi.org


[This message has been edited by Bmxer (edited August 08, 1999).]