Package es.urjc.etsii.grafo.metrics
Class MetricsStorage
java.lang.Object
es.urjc.etsii.grafo.metrics.MetricsStorage
Stores metrics of different things that are happening while solving.
THIS CLASS IS NOT THREAD SAFE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map
<String, AbstractMetric> static final long
protected final long
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new metrics instance taking the current nanoTime as a reference pointMetricsStorage
(long referenceNanoTime) Create a new metrics instance -
Method Summary
Modifier and TypeMethodDescriptionlong
-
Field Details
-
NO_REF
public static final long NO_REF- See Also:
-
metrics
-
referenceNanoTime
protected final long referenceNanoTime
-
-
Constructor Details
-
MetricsStorage
public MetricsStorage(long referenceNanoTime) Create a new metrics instance- Parameters:
referenceNanoTime
- all data points will be relative to this time, use the returned value of System.nanoTime()
-
MetricsStorage
public MetricsStorage()Create a new metrics instance taking the current nanoTime as a reference point
-
-
Method Details
-
getMetrics
-
getReferenceNanoTime
public long getReferenceNanoTime()
-