refactor summary timing. always compute CPU use for Loop time.

This commit is contained in:
Axel Kohlmeyer
2013-07-27 22:19:48 +02:00
parent 7f22f5c5ca
commit 6bd977ceea
2 changed files with 50 additions and 20 deletions

View File

@ -114,7 +114,8 @@ void Timer::barrier_start()
MPI_Barrier(world);
if (_level < LOOP) return;
if (_level > NORMAL) current_cpu = CPU_Time();
current_cpu = CPU_Time();
current_wall = MPI_Wtime();
cpu_array[TOTAL] = current_cpu;
@ -132,7 +133,8 @@ void Timer::barrier_stop()
MPI_Barrier(world);
if (_level < LOOP) return;
if (_level > NORMAL) current_cpu = CPU_Time();
current_cpu = CPU_Time();
current_wall = MPI_Wtime();
cpu_array[TOTAL] = current_cpu - cpu_array[TOTAL];