Gravitational lensing, time delay, and angular diameter distance