Why does waiting for 8 minutes feel like an eternity but waiting for an hour goes by in seconds?

What is time? Why does it not pass consistently unless you are paying attention to it?