main/src/test/java/org/onap/policy/pap/main/comm/TimerManagerTest.java
/**
         * Registers a timer with a new starting time. Because the manager uses the
         * current time when determining the expiration time, we have to temporarily
         * fiddle with {@link #curTime}, but we leave it unchanged when we're done.
         * Increases the {@link #offset} each time it's invoked.
         *
         * @return the new timer
         */
Registers a timer with a new starting time. Because the manager uses the
current time when determining the expiration time, we have to temporarily
fiddle with  #curTime, but we leave it unchanged when we're done.
Increases the  #offset each time it's invoked.

@return the new timer
Registers a timer with a new starting time . Because the manager uses the current time when determining the expiration time we have to temporarily fiddle with #curTime but we leave it unchanged when we ' re done . Increases the #offset each time it ' s invoked . @return the new timer
public Timer registerNewTime(String timerName, Consumer<String> action) {
            synchronized (lockit) {
                offset++;
                curTime += offset;
                Timer timer = super.register(timerName, action);
                curTime -= offset;
                return timer;
            }
        }
public Timer registerNewTime ( String timerName , Consumer < String > action ) { synchronized ( lockit ) { offset ++ ; curTime += offset ; Timer timer = super . register ( timerName , action ) ; curTime -= offset ; return timer ; } }
Registers a timer with a new starting time.
Registers a timer with a new starting time .