Package 

Class SystemTimeSource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static TimeSource INSTANCE
    • Method Summary

      Modifier and Type Method Description
      long getNanoTicks() Returns monotonically increasing ticks from some arbitrary start point.
      long getCurrentTimeMillis() Milliseconds since the start of the epoch
      long getCurrentTimeMicros() Microseconds since the start of the epoch
      long getCurrentTimeNanos() Nanoseconds since the start of the epoch.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getNanoTicks

         long getNanoTicks()

        Returns monotonically increasing ticks from some arbitrary start point. Should only be used tomeasure durations. Negative numbers and zero are both valid return values

      • getCurrentTimeNanos

         long getCurrentTimeNanos()

        Nanoseconds since the start of the epoch. Valid for the time range 1/1/1970 +/- 270 years