getCurrentTimeNanos

public static longĀ getCurrentTimeNanos()

Returns the current time from the epoch (00:00 1st Jan, 1970) with nanosecond granularity. This is a non-negative signed 64-bit value, which must be in the range 0 <= timestamp < 2^63, ensuring that the difference between any two timestamps will always yield a valid signed value.

Warning: Not all Platform implementations will be able to deliver nanosecond precision and code should avoid relying on any implied precision.