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

com.igumnov.common.Time Maven / Gradle / Ivy

Go to download

Common Java library - Simple, small, stable and fast library with Simplified Enterprise Server (Dependency Injection, WebServer and ORM Frameworks)

The newest version!
package com.igumnov.common;


public class Time {


    public static void delayInSeconds(double seconds) {
        pauseInSeconds(seconds);
    }

    public static void sleepInSeconds(double seconds) {
        pauseInSeconds(seconds);
    }

    public static void pauseInSeconds(double seconds) {
        try {
            Thread.sleep((long) (1000 * seconds));
        } catch (InterruptedException ex) {
            Thread.currentThread().interrupt();
        }
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy