Class Stopwatch

org.elasticsearch.common.inject.internal.Stopwatch

public class Stopwatch extends
Enables simple performance monitoring.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Resets and returns elapsed time in milliseconds.
    void
     label)
    Resets and logs elapsed time in milliseconds.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • Stopwatch

      public Stopwatch()
  • Method Details

    • reset

      public long reset()
      Resets and returns elapsed time in milliseconds.
    • resetAndLog

      public void resetAndLog( label)
      Resets and logs elapsed time in milliseconds.