a minor bug in schedule method!
authoramiraj <amiraj.95@uci.edu>
Thu, 1 Aug 2019 23:01:36 +0000 (16:01 -0700)
committeramiraj <amiraj.95@uci.edu>
Thu, 1 Aug 2019 23:01:36 +0000 (16:01 -0700)
Methods/schedule.groovy

index fac8d952cecfc82dc001b519d9bc74dedcf045df..307b221e25c3f2a89cd3f6f3981ec78648d5252d 100644 (file)
@@ -15,7 +15,6 @@ def schedule(String time, String nameOfFunction) {
        //} else {
        //      delay = inputTime-currentTime
        //}
        //} else {
        //      delay = inputTime-currentTime
        //}
-
        timersFuncList.add(nameOfFunction)
        timersList.add(new SimulatedTimer())
        def task = timersList[timersFuncList.indexOf(nameOfFunction)].runAfter(/*delay*1000*0*/0) {
        timersFuncList.add(nameOfFunction)
        timersList.add(new SimulatedTimer())
        def task = timersList[timersFuncList.indexOf(nameOfFunction)].runAfter(/*delay*1000*0*/0) {