Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock-fpga
Commits
dfd3066d
Commit
dfd3066d
authored
Nov 11, 2018
by
Leonardo Solis
Browse files
#31, removed wrong/misleading code/comments about time measurent
parent
9256b1d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
ofdock_taskpar_xl/host/src/main.cpp
View file @
dfd3066d
...
...
@@ -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
;
}
ofdock_taskpar_xl/host/src/performdocking.cpp
View file @
dfd3066d
//// ------------------------
//// Correct time measurement
//// Moved from main.cpp to performdocking.cpp
//// to skip measuring build time
//// ------------------------
#include
"performdocking.h"
//// --------------------------------
...
...
Leonardo Solis
@solis
mentioned in commit
c557f94d
·
Jan 04, 2021
mentioned in commit
c557f94d
mentioned in commit c557f94d0f5285c2cf69aad7755f7d70d1f86f14
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment