update timing function