Use a instance variable, timetouched.
then your event:
object Is dragging: add dt to timetouched
is touching object would probably work as well as condition. timetouched will store the time it got touched. Don't forget to set it to 0 again somewhere if you want it to reset.