Skip to content

Nanosecond (ns)

The nanosecond is one billionth of a second, and it is the fundamental timescale of modern computing. A processor running at 3 GHz completes one clock cycle every 0.33 nanoseconds. RAM memory delivers data in 10 to 100 nanoseconds. In one nanosecond, light travels approximately 30 centimeters, about the length of a ruler. This fact was famously illustrated by computer pioneer Grace Hopper, who distributed short lengths of wire to audiences to show them what one nanosecond of light-speed communication looks like in physical terms. The nanosecond is invisible to human perception but defines the performance characteristics of nearly every piece of digital hardware in the world.

Definition

One nanosecond equals 0.000000001 seconds, or 10⁻⁹ seconds. It equals 1,000 picoseconds. One microsecond contains exactly 1,000 nanoseconds. One second contains exactly 1,000,000,000 nanoseconds.

History

The nanosecond entered practical use with the development of transistor-based computers in the late 1950s. Early vacuum tube computers operated in the microsecond range, but transistors were far faster, and engineers needed a smaller unit to describe their timing characteristics. The first transistorized mainframe computers of the early 1960s had cycle times measured in hundreds of nanoseconds. By the 1980s, personal computer processors operated in the tens of nanoseconds range. Grace Hopper, a pioneer of computer programming and the inventor of the first compiler, popularized the nanosecond in public talks during the 1970s and 1980s. She would hand audience members a 30-centimeter piece of wire and explain that was the maximum distance electricity could travel in one nanosecond, using it to argue against the wasteful use of communication bandwidth.

Common Uses

Modern computer processors use nanoseconds as their natural unit of operation. A CPU at 3 GHz has a clock period of about 0.33 ns. DDR4 RAM has typical access latencies of 13 to 18 nanoseconds. Ethernet network cables transmit data at roughly 0.64 nanoseconds per centimeter of cable length, which is why engineers count cable runs precisely in data center design. In particle physics, detectors at colliders like CERN must record the time of particle collision events with nanosecond or better precision to reconstruct what occurred. Optical fiber telecommunications systems use nanosecond-level pulse timing to send multiple signals simultaneously through a single fiber using wavelength-division multiplexing.

Did You Know? Facts About Nanosecond

  • Grace Hopper famously handed out 30-centimeter lengths of wire to illustrate one nanosecond of signal travel time. She called these 'nanoseconds' and used them to argue that no one should ever waste a nanosecond by sending unnecessary data over long cables.
  • A modern Intel or AMD processor operating at 4 GHz completes four billion clock cycles per second, meaning each cycle takes 0.25 nanoseconds. In the time it takes you to blink, the processor completes roughly 600 million cycles.
  • Light traveling through optical fiber moves slightly slower than in a vacuum, at roughly 20 centimeters per nanosecond. High-frequency trading firms pay enormous sums to co-locate servers in data centers close to stock exchanges, because even a few nanoseconds of cable delay can mean the difference between profit and loss.
  • The GPS system works by measuring the travel time of signals from satellites to receivers with nanosecond precision. An error of just one nanosecond would translate to a position error of about 30 centimeters.
  • DRAM memory, the main RAM in your computer, has been stuck at roughly 10 to 100 nanosecond latency for decades. This is known as the 'memory wall' — processors have gotten exponentially faster, but memory latency has improved much more slowly.