Ejemplo n.º 1
0
        /// <returns>Perfect invocation count</returns>
        public long Run()
        {
            // If InvocationCount is specified, pilot stage should be skipped
            if (TargetJob.HasValue(RunMode.InvocationCountCharacteristic))
            {
                return(TargetJob.Run.InvocationCount);
            }

            // Here we want to guess "perfect" amount of invocation
            return(TargetJob.HasValue(RunMode.IterationTimeCharacteristic)
                ? RunSpecific()
                : RunAuto());
        }