Add timing to demo3