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

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

There is a newer version: 1.0.0-beta_spark_2
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy