|
|
@ -0,0 +1,16 @@ |
|
|
|
package com.iflytop.uf.command; |
|
|
|
import com.iflytop.uf.UfCommand; |
|
|
|
import java.util.List; |
|
|
|
public class UfCmdDelay implements UfCommand { |
|
|
|
@Override |
|
|
|
public void execute( List<String> args ) { |
|
|
|
// get delay time |
|
|
|
int delayTime = Integer.parseInt(args.get(0)); |
|
|
|
// sleep |
|
|
|
try { |
|
|
|
Thread.sleep(delayTime); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
throw new RuntimeException(e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |