Interface Threads.TimeSince

Enclosing class:
Threads

public static interface Threads.TimeSince
Measures the amount time that has elapsed since the last reset.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Get the time that has elapsed since the last call to reset.
    void
    Reset the elapsed time to 0.
  • Method Details

    • reset

      void reset()
      Reset the elapsed time to 0.
    • elapsedTime

      long elapsedTime()
      Get the time that has elapsed since the last call to reset.
      Returns:
      the number of milliseconds