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

org.kuali.ole.utility.OleStopWatch Maven / Gradle / Ivy

The newest version!
package org.kuali.ole.utility;

/**
 * Created by pvsubrah on 4/7/15.
 */
public class OleStopWatch {

    private long startTime = 0;
    private long endTime   = 0;

    public void start(){
        this.startTime = System.currentTimeMillis();
    }

    public void end() {
        this.endTime   = System.currentTimeMillis();
    }

    public long getStartTime() {
        return this.startTime;
    }

    public long getEndTime() {
        return this.endTime;
    }

    public long getTotalTime() {
        return this.endTime - this.startTime;
    }

    public void reset() {
        this.startTime = 0;
        this.endTime = 0;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy