All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.jcgay.maven.profiler.reporting.template.EntryAndTime Maven / Gradle / Ivy

There is a newer version: 3.2
Show newest version
package fr.jcgay.maven.profiler.reporting.template;

import com.google.common.base.Stopwatch;

public class EntryAndTime {

    private final T entry;
    private final Stopwatch time;

    public EntryAndTime(T entry, Stopwatch time) {
        this.entry = entry;
        this.time = time;
    }

    public T getEntry() {
        return entry;
    }

    public Stopwatch getTime() {
        return time;
    }

    public String getMillisTimeStamp() {
        return String.valueOf(time.elapsedMillis()) + " ms";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy