Add perfmetrics recording rendering duration for HTML requests.

This is the same duration reported in HTML by 'karl.timeit'.