Information for this thechnique (method) I found it on Doz's Blog.
For test, I use a simple schematic (one button) and pushtime1button.ino program (sketch).
For understand more ok the style of use, I tested also with 2 buttons, using pushtime2buttons.ino sketch.
I made a short movie named measure times using millis() where is mase some tests: