Class TimeCounter

  • All Implemented Interfaces:
    ICounter, Criterion, LongCriterion

    public class TimeCounter
    extends ACounter
    A limit over run time. It acts as a monitor, to be up-to-date when the search loop asks for limit reaching.
    Since:
    19/04/11
    Author:
    Charles Prud'homme
    • Constructor Detail

      • TimeCounter

        public TimeCounter​(Model model,
                           long timeLimitInNano)
        Parameters:
        model - the model to instrument
        timeLimitInNano - in nanosecond
      • TimeCounter

        public TimeCounter​(IMeasures measures,
                           long timeLimitInNano)
        Parameters:
        measures - the measures recorder to check
        timeLimitInNano - in nanosecond
    • Method Detail

      • currentValue

        public long currentValue()