Skip to content

Glossary: Data Structures and Algorithms in Java

System.nanoTime

Also written: nanoTime

A method that returns a reading from a precise clock in nanoseconds. Subtracting a reading taken before from one taken after gives how long code took.

Where the book teaches it

Related terms

JIT warm-up