update with new timer class
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2432 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ad32ed0000
commit
00cee275b3
1 changed files with 4 additions and 6 deletions
|
|
@ -183,14 +183,12 @@ void main_function(int argc, char **argv)
|
|||
//init(solution);
|
||||
eval(sol);
|
||||
std::cout << "initial : " << sol << std::endl;
|
||||
moGPUTimer timer1;
|
||||
timer1.start();
|
||||
moGPUTimer timer;
|
||||
timer.start();
|
||||
SA(sol);
|
||||
timer1.stop();
|
||||
timer.stop();
|
||||
std::cout << "final : " << sol << std::endl;
|
||||
printf("Execution time = %f ms\n",timer1.getTime());
|
||||
timer1.deleteTimer();
|
||||
|
||||
printf("Execution time = %.2lf s\n",timer.getTime());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue