org.cybergarage.util.TimerUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of upnp-stack-jdk13 Show documentation
Show all versions of upnp-stack-jdk13 Show documentation
A pure Java Open Source implementation of the UPnP stack backported for JDK13
The newest version!
/******************************************************************
*
* CyberUtil for Java
*
* Copyright (C) Satoshi Konno 2002-2003
*
* File: TimerUtil.java
*
* Revision:
*
* 01/15/03
* - first revision.
*
******************************************************************/
package org.cybergarage.util;
public final class TimerUtil
{
public final static void wait(int waitTime)
{
try {
Thread.sleep(waitTime);
}
catch (Exception e) {}
}
public final static void waitRandom(int time)
{
int waitTime = (int)(Math.random() * (double)time);
try {
Thread.sleep(waitTime);
}
catch (Exception e) {}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy