me.xethh.libs.toolkits.stopWatchEx.StopWatchExImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Library of common used tools - major focus on common tools
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();
}
}