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

org.deeplearning4j.spark.time.SystemClockTimeSource Maven / Gradle / Ivy

package org.deeplearning4j.spark.time;


/**
 * A {@link TimeSource} implementation that is identical to calling {@link System#currentTimeMillis()}
 *
 * @author Alex Black
 */
public class SystemClockTimeSource implements TimeSource {

    public static TimeSource getInstance(){
        return new SystemClockTimeSource();
    }

    public long currentTimeMillis() {
        return System.currentTimeMillis();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy