Macbeth is realising that life is short. Through his personification of life, he claims that everyone has their hour to 'strut upon the state', which signifies that for a good part of our time on earth, we're wasting our time with petty nonsense, and the real focus is only brief, much like an act in a play.