What if you start a timer?

DT's routines could tell you how long a button is pressed.

Robert