Measure the time elapsed from the user indicating an intent to edit (e.g., by clicking on the edit tab or on a section edit link) to the first edit interaction (e.g., keypress in edit textarea, VE toolbar click, etc.).
See also:
T115598: Track count of task abandonment / completion in MediaWiki