Interface TimeMeter

    • Method Detail

      • currentTimeNanos

        long currentTimeNanos()
        Returns current time in nanosecond precision, but not necessarily nanosecond resolution.
        Returns:
        current time in nanoseconds
      • isWallClockBased

        boolean isWallClockBased()
        Returns true if implementation of clock behaves the similar way as System.currentTimeMillis(), in other words if implementation can be used in distributed scenarios and returns approximately the same time in all machines in cluster
        Returns:
        true if implementation can be used as wall clock