cf.dropsonde.metron.Time Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snotel Show documentation
Show all versions of snotel Show documentation
Java support for Cloud Foundry's Loggregator using the Dropsonde protocol.
package cf.dropsonde.metron;
import java.time.Instant;
/**
* @author Mike Heath
*/
class Time {
static long timestamp() {
return timestamp(Instant.now());
}
static long timestamp(Instant timestamp) {
return timestamp.getEpochSecond() * 1_000_000_000 + timestamp.getNano();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy