Measuring dwell or antidwell time