I would like to include query statistics (i.e. records returned and elapsed time) in my Index views (similar to Google’s). I found the records returned, but am having difficultly locating the elapsed time.
I’m using Rails3 beta and the will_paginate plugin.
The Rails Footnote plugin does this by registering itself with ActiveRecord as a connection adapter. Here’s the relevant source code from that project that should enable you to get started.