how long should I pump for

How long should I pump for when pumping every 2 hours to increase milk supply? The whole hour or a certain amount? What has worked best for you when you first started pumping ?