From d64e3ed67beb0a7de04a9941eae88ebb709dc3cd Mon Sep 17 00:00:00 2001 From: wcancino Date: Tue, 17 Mar 2009 09:47:40 +0000 Subject: [PATCH] Small changes git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1555 331e1502-861f-0410-8da2-ba01fb791d7f --- .../branches/PhyloMOEA/PhyloMOEA/PhyloMOEA.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEA.cpp b/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEA.cpp index 85d66ffa0..a9bf2f5e3 100644 --- a/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEA.cpp +++ b/contribution/branches/PhyloMOEA/PhyloMOEA/PhyloMOEA.cpp @@ -313,22 +313,7 @@ int main(int argc, char *argv[]) clades_final.close(); cout << "\nPhyloMOEA execution finishes !\n"; gettimeofday(&tempo2, NULL); - timeval_subtract(&result,&tempo2,&tempo1); - - long remainder = result.tv_sec % 3600; - long hours = (result.tv_sec - remainder)/3600; - long seconds = remainder % 60; - long minutes = (remainder - seconds) / 60; - cout << "Execution time : "; - cout.width(3); - cout.fill(' '); - cout << hours << ":"; - cout.width(2); - cout.fill('0'); - cout << minutes << ":"; - cout.width(2); - cout.fill('0'); - cout << seconds << "." << result.tv_usec << "(" << result.tv_sec << ")" << endl; + print_elapsed_time(&tempo1,&tempo2); } gsl_rng_free(rn2); // delete probmatrixs;