Added time measurement for update routine for better debugging