Interface Clock


public interface Clock
High-precision nanosecond time source. This interface is only useful for measuring elapsed time from the same Clock instance. Time values might be calculated using System::nanoTime, but on no account should the clock time be compared with it. Implementations of Clock should normally be obtained from RootHub.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Clock time in nanoseconds.
  • Method Details

    • getTime

      long getTime()
      Clock time in nanoseconds. Only useful for measuring elapsed time relative to other calls to this method made on the same Clock instance.
      Returns:
      current clock time in nanoseconds