Text this: Method of Diagnostics of Electron Beams of Femto-, Attosecond Duration