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

io.lsn.java.common.stopwatch.Log Maven / Gradle / Ivy

package io.lsn.java.common.stopwatch;

import java.util.Date;

/**
 * @author Patryk Szlagowski 
 */
public class Log {
    private Date date;
    private String name;

    public Log(String name, Date date) {
        this.date = date;
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public String getName() {
        return name;
    }

    public long diff(Log log) {
        return log.getDate().getTime()-date.getTime();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy