2015-09-07 11:44:36 -06:00

16 lines
337 B
Java

// com/mindviewinc/util/Sleep.java
// ©2015 MindView LLC: see Copyright.txt
// Sleep for n seconds.
package com.mindviewinc.util;
import java.util.concurrent.*;
public class Sleep {
public Sleep(int n) {
try {
TimeUnit.SECONDS.sleep(n);
} catch(InterruptedException e) {
throw new RuntimeException(e);
}
}
}