com.xavax.util.Timers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcore Show documentation
Show all versions of xcore Show documentation
Core classes used by other Xavax projects.
//
// Copyright 2013 by Xavax, Inc. All Rights Reserved.
// Use of this software is allowed under the Xavax Open Software License.
// http://www.xavax.com/xosl.html
//
package com.xavax.util;
/**
* Timers is a utility class for timers and sleeping.
*
* @author [email protected]
*/
public final class Timers {
/**
* Private constructor provided to keep the compiler from generating
* a public default constructor.
*/
private Timers() {}
/**
* Sleep the specified number of milliseconds.
*
* @param interval the amount of time in milliseconds to sleep.
*/
public static void sleep(final long interval) {
try {
Thread.sleep(interval);
}
catch (Exception e) {
// Ignore this exception.
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy