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

io.sentry.time.SystemClock Maven / Gradle / Ivy

There is a newer version: 8.0.0-rc.4
Show newest version
package io.sentry.time;

import java.util.Date;

/**
 * Clock implementation that defers to the system clock. Should be used
 * outside of tests.
 */
public class SystemClock implements Clock {
    @Override
    public long millis() {
        return System.currentTimeMillis();
    }

    @Override
    public Date date() {
        return new Date();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy