Updating time interval comparison so that time elapsed is more accurate