int main() { char szStr[256]; int ctime; ctime=0; ctime=ctime+calcFuncCall(); ctime=ctime+calcAdd(); ctime=ctime+calcSub(); ctime=ctime+calcMul(); ctime=ctime+calcDiv(); ctime=ctime+calcShift(); ctime=ctime+calcFloatAdd(); ctime=ctime+calcFloatSub(); ctime=ctime+calcFloatMul(); ctime=ctime+calcFloatDiv(); ctime=ctime+calcDoubleAdd(); ctime=ctime+calcDoubleSub(); ctime=ctime+calcDoubleMul(); ctime=ctime+calcDoubleDiv(); printf("Spec Time=,%d",ctime); return 0; }
double Intergrate::Operation() { double result; if (oper == '+'){ CalcAdd<double> calcAdd(num1, num2); double result_Add; result = calcAdd.AddRun(); } else if (oper == '-'){ CalcSub<double> calcSub(num1, num2); double result_Sub; result = calcSub.SubRun(); } else if (oper == '*'){ CalcMul<double> calcMul(num1, num2); double result_Mul; result = calcMul.MulRun(); } else if (oper == '/'){ CalcDiv<double> calcDiv(num1, num2); double result_Div; result = calcDiv.DivRun(); } else{ std::cout<<"err"<<std::endl; return 0; } return result; }