you may use timer with interval time of 1ms, and create global counter var, in timer sub increment that global counter with 1. when button down enable timer, when button up, stop timer and read the value of global counter.
another method is to read DateTime.Now when button is down and read again when up, to get delay in millis