update timing code