You need to get from the green button to the blue button so fast that you can go south from the blue button directly to the blue crystal in the bottom left. As you realized, if you go north from the blue button, you're not going to make it. That's why you need to be fast enough to get out of that room while the green crystal is still gone.