-- This is the ITERATION_COUNT control package for feature measurements
-- The set of procedures provide the automatic stabilizing of the
-- timing measurement. The measurement CPU time must be greater than:
--  1.0 second,  DURATION'SMALL * 100 ,  SYSTEM.TICK * 100
--
-- Note: If there is no control loop, the START_CONTROL and STOP_CONTROL
--       do not need to be called.

package Iteration is -- A000031.ADA

    procedure Start_Control;

    procedure Stop_Control (Global : Integer; Check : Integer);

    procedure Start_Test;

    procedure Stop_Test (Global : Integer; Check : Integer);

    procedure Feature_Times (Cpu_Time : out Duration; Wall_Time : out Duration);

    procedure Initialize (Iteration_Count : out Integer);

    procedure Test_Stable (Iteration_Count : in out Integer;
                           Stable : out Boolean);
end Iteration;