A stopwatch for electron motion inside matter