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

org.mentalog.timestamper.MillisTimestamper Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy