DigitalWrite & DigitalRead and Delay in ns

HI Delta_G
can you elaborate about the code if possible.

Thanks