Commit dfd3066d authored by Leonardo Solis's avatar Leonardo Solis

#31, removed wrong/misleading code/comments about time measurent

parent 9256b1d3
......@@ -4,11 +4,6 @@
#include "getparameters.h"
#include "performdocking.h"
// ------------------------
// Correct time measurement
// Moved to performdocking.cpp to skip measuring build time
// ------------------------
int main(int argc, char* argv[])
{
......@@ -20,13 +15,15 @@ int main(int argc, char* argv[])
Liganddata myligand_init;
Dockpars mypars;
clock_t clock_start_program, clock_stop_program;
clock_t clock_start_program;
/*
clock_t clock_stop_program;
*/
clock_start_program = clock();
// ------------------------
// Correct time measurement
// Moved to performdocking.cpp to skip measuring build time
// Time measurement
double num_sec, num_usec, elapsed_sec;
timeval time_start,time_end;
gettimeofday(&time_start,NULL);
......@@ -89,20 +86,19 @@ int main(int argc, char* argv[])
if (docking_with_gpu(&mygrid, floatgrids.data(), &mypars, &myligand_init, &argc, argv, clock_start_program) != 0)
return 1;
/*
/*
clock_stop_program = clock();
printf("Program run time: %.3f sec\n", ELAPSEDSECS(clock_stop_program, clock_start_program));
*/
*/
// ------------------------
// Correct time measurement
// Moved to performdocking.cpp to skip measuring build time
// Time measurement
gettimeofday(&time_end,NULL);
num_sec = time_end.tv_sec - time_start.tv_sec;
num_usec = time_end.tv_usec - time_start.tv_usec;
elapsed_sec = num_sec + (num_usec/1000000);
printf("Program run time %.3f sec (CORRECTED, used for EVALUATION)\n",elapsed_sec);
//// ------------------------
printf("Full program-execution time %.3f secs\n",elapsed_sec);
// ------------------------
return 0;
}
//// ------------------------
//// Correct time measurement
//// Moved from main.cpp to performdocking.cpp
//// to skip measuring build time
//// ------------------------
#include "performdocking.h"
//// --------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment