Jitter measurements: from theory to practice