Beat the "second quest" version of the game. This quest is unlocked by beating the game, or by entering ZELDA for your filename.
Timing starts at gaining control of Link. (time from file select to gaining control of Link is 1.84 seconds)
Timing ends when you lose control of Link in the room with Zelda.