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.
Glossary: Data Structures and Algorithms in Java
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.