add support for a RESET operation

This commit is contained in:
Axel Kohlmeyer
2013-07-27 23:25:17 +02:00
parent df889fe40c
commit c1791fc96d
2 changed files with 10 additions and 2 deletions

View File

@ -93,6 +93,12 @@ void Timer::_stamp(enum ttype which)
previous_cpu = current_cpu;
previous_wall = current_wall;
if (which == RESET) {
this->init();
cpu_array[TOTAL] = current_cpu;
wall_array[TOTAL] = current_wall;
}
if (_sync) {
MPI_Barrier(world);
if (_level > NORMAL) current_cpu = CPU_Time();