Reading a pattern help!

If a pattern says to “continue knitting in stockinette stitch until armhole measures 5 inches”, do you measure 5" around the actual armhole or 5" straight up the sweater from where you started casting off for the armhole?

Straight up from the row where you did the BO sts.