Attosecond metrology in a continuous-beam transmission electron microscope