Cleaned up run time measurement
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 25 Sep 2013 22:25:20 +0000 (00:25 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Sat, 26 Oct 2013 05:44:58 +0000 (07:44 +0200)
commit577ffe3a7d0d21f6cbf346c1ad5108b759c3ef8b
tree1cee88415671d5b674c5029420e120a591751393
parentb4cc65066af09693f25b8dc84e631bd610ed0f01
Cleaned up run time measurement

Removed all use of clock(), in favour of using clock_gettime for
per-node timer and (where available) per-thread timer. This is better
than using gettimeofday(), which is deprecated by POSIX. clock() has
no real advantages, and requires us to keep bumping our own counter if
we use it (in particular, on any remaining 32-bit
machines). Eliminated related dead code.

Cleaned up struct gmx_runtime_t and related code by
* renaming variables more descriptively
* removing variables that should be local variables in a function
* eliminating variables associated with using clock()

The behaviour of print_perf is preserved (tested real MPI, thread MPI;
serial looks like it should work also); namely that the "(%)" should
be a crude reflection of machine load.

Change-Id: Icdf506150045bee88cf04200b25cd010a9bb5419
CMakeLists.txt
src/gromacs/gmxlib/nrnb.c
src/gromacs/legacyheaders/sim_util.h
src/gromacs/mdlib/expanded.c
src/gromacs/mdlib/sim_util.c
src/programs/mdrun/md.c
src/programs/mdrun/runner.c