https://www.ednasia.com/making-better-measurements-with-your-oscilloscope-or-digitizer/
Making better measurements with your oscilloscope or digitizer