added a nifty timer to measure render time