#18 move to event-driven main loop
[fanfix.git] / src / jexer / TTimer.java
index 3ec63cba91fe3bc812e7105f5adf4adc77f1a7f1..a86c132febbcfb31977ef6a73989e3846905d2ce 100644 (file)
@@ -60,6 +60,15 @@ public final class TTimer {
         return nextTick;
     }
 
+    /**
+     * Set the recurring flag.
+     *
+     * @param recurring if true, re-schedule this timer after every tick
+     */
+    public void setRecurring(final boolean recurring) {
+        this.recurring = recurring;
+    }
+
     /**
      * The action to perfom on a tick.
      */