Update timing function