A Novel Attosecond Timing Tool for Free-Electron Laser Experiment