A nanosecond (ns) is a unit of time in the International System of Units (SI) equal to one billionth of a second, that is, 1/1000000000 of a second, or 10−9 seconds.
nanosecond | |
---|---|
Unit system | SI |
Unit of | time |
Symbol | ns |
Conversions | |
1 ns in ... | ... is equal to ... |
SI units | 10−9 s |
The term combines the SI prefix nano- indicating a 1 billionth submultiple of an SI unit (e.g. nanogram, nanometre, etc.) and second, the primary unit of time in the SI.
A nanosecond is to one second, as one second is to approximately 31.69 years.
A nanosecond is equal to 1000 picoseconds or 1/1000 microsecond. Time units ranging between 10−8 and 10−7 seconds are typically expressed as tens or hundreds of nanoseconds.
Time units of this granularity are commonly found in telecommunications, pulsed lasers, and related aspects of electronics.
time.Now() now gets real nanosecond resolution on supported systems
The default time.Time type represents an instant in time with nanosecond precision