
io.honeycomb.libhoney.transport.batch.impl.SystemClockProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libhoney-java Show documentation
Show all versions of libhoney-java Show documentation
The Java client for sending events honeycomb
The newest version!
package io.honeycomb.libhoney.transport.batch.impl;
import io.honeycomb.libhoney.transport.batch.ClockProvider;
/**
* Returns the current time as reported by the system clock.
*/
public class SystemClockProvider implements ClockProvider {
private static final SystemClockProvider INSTANCE = new SystemClockProvider();
public static ClockProvider getInstance() {
return INSTANCE;
}
@Override
public long getWallTime() {
return System.currentTimeMillis();
}
@Override
public long getMonotonicTime() {
return System.nanoTime();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy