Class StopWatch
java.lang.Object
com.clickhouse.client.api.internal.StopWatch
- All Implemented Interfaces:
Metric
-
Constructor Summary
Constructors -
Method Summary
-
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
-
getLong
public long getLong()Description copied from interface:MetricReturns value of the metric as a long.
-