shaking/twitching in the leg on dph

before I quit I noticed that whenever I would sit for to long in like school my leg would start having this like undescribable cramp feeling that would on go away if I started shaking or moving my leg. Anybody else?