Scientists measured X-ray pulses lasting 170 attoseconds with high accuracy. The new method could track fast electron motion in atoms and molecules.