org.mentalog.timestamper.MillisTimestamper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of menta-log Show documentation
Show all versions of menta-log Show documentation
A log library that embraces the kiss principle.
package org.mentalog.timestamper;
/**
* MentaLog's default timestamper implementation.
*
* It just calls System.currentTimeMillis()
*
* Refer to: http://mentalog.soliveirajr.com for documentations, recipes and more.
*
* @author Sergio Oliveira Jr. - [email protected]
*/
public class MillisTimestamper implements Timestamper {
MillisTimestamper() { }
@Override
public Precision getPrecision() {
return Timestamper.Precision.MILLIS;
}
@Override
public long getTimestamp() {
return System.currentTimeMillis();
}
}