Java System nanoTime() Method

The nanoTime() method of Java System class returns high resolution time source in nanoseconds of running java virtual machine. It returns the current value of JVM.

Syntax

Returns

Returns a high resolution time source in nanoseconds.

Example

Output:

Current time in nanoseconds = 1316893720017448