Myoclonus is the medical name given to muscle contraction that is not under the control of a person. It can be like a jerk or a twitch on the leg. Such contractions can also occur during sleep. It’s a benign condition that does not cause any harm.