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

fun.fengwk.convention4j.example.clock.ClockExample Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package fun.fengwk.convention4j.example.clock;

import fun.fengwk.convention4j.common.clock.Clock;
import fun.fengwk.convention4j.common.clock.SystemClock;

/**
 * @author fengwk
 */
public class ClockExample {

    public static void main(String[] args) {
        Clock clock = new SystemClock();
        System.out.println("currentTimeMillis: " + clock.currentTimeMillis());
        System.out.println("currentTimeMicros: " + clock.currentTimeMicros());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy