update with new timer class
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2431 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ac51177963
commit
ad32ed0000
1 changed files with 4 additions and 8 deletions
|
|
@ -240,8 +240,7 @@ void main_function(int argc, char **argv)
|
||||||
localSearch1(sol1);
|
localSearch1(sol1);
|
||||||
timer1.stop();
|
timer1.stop();
|
||||||
std::cout << "final: " << sol1 <<std::endl;
|
std::cout << "final: " << sol1 <<std::endl;
|
||||||
printf("Execution time = %f ms\n",timer1.getTime());
|
printf("Execution time = %.2lf s\n",timer1.getTime());
|
||||||
timer1.deleteTimer();
|
|
||||||
|
|
||||||
/* =========================================================
|
/* =========================================================
|
||||||
*
|
*
|
||||||
|
|
@ -259,8 +258,7 @@ void main_function(int argc, char **argv)
|
||||||
localSearch2(sol2);
|
localSearch2(sol2);
|
||||||
timer2.stop();
|
timer2.stop();
|
||||||
std::cout << "final: " << sol2 << std::endl;
|
std::cout << "final: " << sol2 << std::endl;
|
||||||
printf("Execution time = %f ms\n",timer2.getTime());
|
printf("Execution time = %.2lf s\n",timer2.getTime());
|
||||||
timer2.deleteTimer();
|
|
||||||
|
|
||||||
/* =========================================================
|
/* =========================================================
|
||||||
*
|
*
|
||||||
|
|
@ -278,8 +276,7 @@ void main_function(int argc, char **argv)
|
||||||
localSearch3(sol3);
|
localSearch3(sol3);
|
||||||
timer3.stop();
|
timer3.stop();
|
||||||
std::cout << "final: " << sol3<< std::endl;
|
std::cout << "final: " << sol3<< std::endl;
|
||||||
printf("Execution time = %f ms\n",timer3.getTime());
|
printf("Execution time = %.2lf s\n",timer3.getTime());
|
||||||
timer3.deleteTimer();
|
|
||||||
|
|
||||||
/* =========================================================
|
/* =========================================================
|
||||||
*
|
*
|
||||||
|
|
@ -297,8 +294,7 @@ void main_function(int argc, char **argv)
|
||||||
localSearch4(sol4);
|
localSearch4(sol4);
|
||||||
timer4.stop();
|
timer4.stop();
|
||||||
std::cout << "final: " << sol4 << std::endl;
|
std::cout << "final: " << sol4 << std::endl;
|
||||||
printf("Execution time = %f ms\n",timer4.getTime());
|
printf("Execution time = %.2lf s\n",timer4.getTime());
|
||||||
timer4.deleteTimer();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue