How would I do something like this? Should I start a timer in the begginning of the "page load" function and a stop the timer at the end of the "page load" function.

I will be writing out a log file with information like....

user:bubba
searched:new cars
time for page load:10 seconds.

Basically, I will be flagging any searches that take a long time and checking to see what the user enters as a search criteria.

Should I also check how long it takes SQL to return the results? Is that even possible in asp.net?

This is for an asp.net project behind a SQL database. Any feedback or comments is greatly appreciated. Thanks.