A sensible routine if you enjoy it: 30-60 seconds per area, at moderate pressure, before a session as part of the warm-up, followed by dynamic movements. More pressure or more time does not obviously give more benefit.
If rolling an area is extremely painful, ease off; it should feel like firm pressure, not damage.
A caution: avoid rolling directly over an acute injury, bruises, bony points or the area of a suspected blood clot. Unexplained calf pain with swelling, warmth or redness needs a doctor, not a foam roller.
And if you are short on time, a good warm-up and strength work are better uses of it.