Simple usage:
* The computer processor completed the calculation in a nanosecond.
* The flash of lightning was so quick, it seemed to last only a nanosecond.
Emphasis on speed:
* The supercomputer processed the data at a rate of billions of calculations per nanosecond.
* The cheetah's speed is incredible; it can accelerate from 0 to 60 mph in a fraction of a nanosecond.
Metaphorical usage:
* After years of waiting, the opportunity came and went in the blink of a nanosecond.
* He had to make a decision in the blink of a nanosecond.
Technical usage:
* The laser emitted pulses with a duration of 10 nanoseconds.
* The electronic signal traveled through the cable at the speed of light, experiencing a delay of only a few nanoseconds.
You can also use "nanosecond" to refer to a very short period of time in general, even if it's not precisely measured:
* I couldn't believe it! My phone battery died in a nanosecond.
* She changed her mind in the space of a nanosecond.
Remember, "nanosecond" implies an incredibly short amount of time, so use it accordingly.