Researchers developed tools to measure and control hard X-ray flashes lasting just 170 attoseconds. The advance could help scientists study how electrons move in quantum systems.