Package alluxio.clock

Class ElapsedTimeClock


  • public final class ElapsedTimeClock
    extends java.time.Clock
    A monotonically increasing clock for calculating elapsed time. NOTE: this is not related to system time so the value returned cannot be used for representing date time. The time can be different across JVM. Do not use it for across processes/machines calculation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.ZoneId getZone()  
      java.time.Instant instant()  
      long millis()  
      java.time.Clock withZone​(java.time.ZoneId zone)  
      • Methods inherited from class java.time.Clock

        equals, fixed, hashCode, offset, system, systemDefaultZone, systemUTC, tick, tickMillis, tickMinutes, tickSeconds
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElapsedTimeClock

        public ElapsedTimeClock()
    • Method Detail

      • millis

        public long millis()
        Overrides:
        millis in class java.time.Clock
      • getZone

        public java.time.ZoneId getZone()
        Specified by:
        getZone in class java.time.Clock
      • withZone

        public java.time.Clock withZone​(java.time.ZoneId zone)
        Specified by:
        withZone in class java.time.Clock
      • instant

        public java.time.Instant instant()
        Specified by:
        instant in class java.time.Clock