Class StopWatch

java.lang.Object
com.clickhouse.client.api.internal.StopWatch
All Implemented Interfaces:
Metric

public class StopWatch extends Object implements Metric
  • Constructor Details

    • StopWatch

      public StopWatch()
    • StopWatch

      public StopWatch(long startNanoTime)
  • Method Details

    • start

      public void start()
    • stop

      public void stop()
    • getElapsedTime

      public long getElapsedTime()
      Returns the elapsed time in milliseconds.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLong

      public long getLong()
      Description copied from interface: Metric
      Returns value of the metric as a long.
      Specified by:
      getLong in interface Metric
      Returns:
      value of the metric as a long