
com.igumnov.common.Time Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
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