Display the time between a request and a response

Hi,

i want to display the time that rails needs to render / process a
request from the user. From start -> a request from a user is
recieved by my application -> the db requests and all the logics
are processed -> the view is rendered -> the response is beeing send -

stop.

I dont want to do this with apache benchmark or s.th. like that. Just
with ruby / rails stuff. I dont want to add the Webserver overhead,
just the
time rails needs to process a request from recieve to response so i
can
show it in each view at the bottom of the page.

is there a rails / ruby way to do this?

Pascal

Pascal,

i want to display the time that rails needs to render / process a
request from the user. From start → a request from a user is

Try the
Timer plugin

I would use code like this in the page footer :
<% if current_user_is_admin? -%>

<% end %>

Another valuable plugin is the
query_stats plugin
http://agilewebdevelopment.com/plugins/query_stats
It tells you about the DB related activities. Very useful to find the
slow spots to cache.

Alain

blog.ravet.com

the Timer plugin

http://agilewebdevelopment.com/plugins/timer