Not sure when the timing ends so assuming it's when the screen turns completely dark.
Mod note: it's when you enter the portal.