1 //Create a class for timer
\r
4 public class SimulatedTimer {
\r
5 private Thread thread;
\r
12 def runAfter(int delay, Closure closure) {
\r
13 /*thread = new Thread() {
\r
25 def runAfter(long delay, Closure closure) {
\r
26 /*thread = new Thread() {
\r
39 //if (thread != null)
\r