Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

Suspender.java

/*
 * Created on Dec 18, 2004
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.prolixtech.utils;

/**
 * @author Constantinos Michael
 * 
 */
00013 public class Suspender {

    public static void suspendSeconds(int seconds) {
        suspendMillis(seconds * 1000);
    }

    public static void suspendMillis(long milliseconds) {
        try {
            Thread.sleep(milliseconds);
        } catch (Exception e) {
            SingletonLogger.Instance().exception("SLEEPER UNABLE TO SLEEP", e);
        }
    }
    
    

}

Generated by  Doxygen 1.6.0   Back to index