Answer
It takes some time to see objects in a dim room when you enter the room from bright sunshine outside because the size of the pupil is small as the intensity of light outside is more. When we enter in a dim room, the pupil expands making things visible.