Class MetricsStorage

java.lang.Object
es.urjc.etsii.grafo.metrics.MetricsStorage

public class MetricsStorage extends Object
Stores metrics of different things that are happening while solving. THIS CLASS IS NOT THREAD SAFE
  • Field Details

  • 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

      public Map<String,AbstractMetric> getMetrics()
    • getReferenceNanoTime

      public long getReferenceNanoTime()