How do I use delta time to measure the time since I pressed a button and held it?

Isn’t this the same as you asked before?