how to give delay of 1 nano seconds

A microprocessor won't do this job. You need some electronics. You will need to hook a crystal up to a counter chip and count the pulses between the trigger and the return signal. The arduino can trigger the mechanism and read the result off the counter chip. Your sketch would fire off a train of several of these events, and would average, filter, convert and display the results.