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

me.xethh.libs.toolkits.stopWatchEx.StopWatchExImpl Maven / Gradle / Ivy

The newest version!
package me.xethh.libs.toolkits.stopWatchEx;

import org.apache.commons.lang3.time.StopWatch;

import java.util.LinkedList;
import java.util.List;

public class StopWatchExImpl implements StopWatchEx{
    protected StopWatch stopWatch = new StopWatch();

    @Override
    public StopWatchEx start() {
        stopWatch.start();
        return this;
    }

    @Override
    public StopWatchEx stop() {
        stopWatch.stop();
        return this;
    }

    @Override
    public StopWatchEx reset() {
        stopWatch.reset();
        return this;
    }

    @Override
    public Long nano() {
        return stopWatch.getNanoTime();
    }

    @Override
    public Long miliSecond() {
        return stopWatch.getTime();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy