Class SystemNanoTime
- java.lang.Object
-
- com.bw.jtools.profiling.measurement.AbstractMeasurementSource
-
- com.bw.jtools.profiling.measurement.SystemNanoTime
-
public final class SystemNanoTime extends AbstractMeasurementSource
Measures monotonic system time in nanoseconds.
-
-
Field Summary
-
Fields inherited from class com.bw.jtools.profiling.measurement.AbstractMeasurementSource
currentSource
-
-
Constructor Summary
Constructors Constructor Description SystemNanoTime()
-
Method Summary
Modifier and Type Method Description java.lang.StringformatValue(java.text.NumberFormat nf, MeasurementValue value)Returns the formatted value.MeasurementValuegetMeasurement()Returns a instance that reflects the current value.-
Methods inherited from class com.bw.jtools.profiling.measurement.AbstractMeasurementSource
format, measure
-
-
-
-
Method Detail
-
getMeasurement
public MeasurementValue getMeasurement()
Description copied from class:AbstractMeasurementSourceReturns a instance that reflects the current value. The first dimension have to be strictly monotone.- Specified by:
getMeasurementin classAbstractMeasurementSource- Returns:
- The current value.
-
formatValue
public java.lang.String formatValue(java.text.NumberFormat nf, MeasurementValue value)Description copied from class:AbstractMeasurementSourceReturns the formatted value.- Specified by:
formatValuein classAbstractMeasurementSource- Parameters:
nf- The number format to use.value- The value to format.- Returns:
- The formatted value.
-
-