If you pump at work (or some place where you don't have unlimited time) do you pump for a certain amount of time or until you stop producing?

Usually I can get everything out in 20 minutes, but if the pump is still getting milk to come out I like to wait until it is done. But I don't have all the time in the world. Do you just cut it off at a certain time?