Class NanotimeUtil


  • public final class NanotimeUtil
    extends Object
    Util methods for Nanotime.
    • Method Detail

      • currentTime

        public static Nanotime currentTime()
        Returns current time in nanoseconds.
        Returns:
        Nanotime object filled with current time in nanoseconds.
      • currentNanoTime

        public static Nanotime currentNanoTime()
        Returns calibrated current JVM nano time.
        Returns:
        Nanotime object filled with current JVM nano time.