Does anybody know where I can find the source code of a HTTP proxy (or something alike that can give me the same results) that can measure the time spent in each website I visit?

I mean, lets suppose that I visit the site "www.aol.com" and after 30 seconds I click on the link "News (www.aol.com/news)" and after 15 seconds I click on the link "International (www.aol.com/news/international)". The proxy should give me an answer like this:

www.aol.com : 30 seconds
www.aol.com/news : 15 seconds
www.aol.com/news/international : still measuring...

Thank you beforehand for your assistance!