Помогает ли это?
static void Main(string[] args)
{
Console.WriteLine("{0,6}{1,6}{2,6}", "Size", "LMaxI", "LMaxT");
for (int ArraySize = 50000; ArraySize <= 500000; ArraySize += 50000)
{
Console.Write("{0,6}", ArraySize);
TestVector = new int[ArraySize];
for (int i = 0; i < TestVector.Length; ++i)
TestVector[i] = i;
LinearMaxInstr();
LinearMaxTim();
Console.Write("\n");
}
}
static void LinearMaxInstr()
{
OpComparisonEQ = 0;
bool Present = IsPresent_LinearInstr(TestVector, TestVector.Length - 1);
Console.Write("{0,6}", OpComparisonEQ);
}
static void LinearMaxTim()
{
OpComparisonEQ = 0;
bool Present = IsPresent_LinearInstr(TestVector, TestVector.Length - 1);
Console.Write("{0,6}",OpComparisonEQ);
}