From 00cee275b3d5f5931130ac30dd31bf5147cc9e26 Mon Sep 17 00:00:00 2001 From: boufaras Date: Thu, 29 Sep 2011 13:50:01 +0000 Subject: [PATCH] update with new timer class git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2432 331e1502-861f-0410-8da2-ba01fb791d7f --- .../tutoriel/OneMax/testSimulatedAnnealing.cu | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/branches/ParadisEO-GPU/tutoriel/OneMax/testSimulatedAnnealing.cu b/branches/ParadisEO-GPU/tutoriel/OneMax/testSimulatedAnnealing.cu index 19f9cf020..cdfc227fd 100644 --- a/branches/ParadisEO-GPU/tutoriel/OneMax/testSimulatedAnnealing.cu +++ b/branches/ParadisEO-GPU/tutoriel/OneMax/testSimulatedAnnealing.cu @@ -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()); }