Class NanotimeUtil

java.lang.Object
org.opendaylight.bgpcep.programming.NanotimeUtil

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

    • 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.