//======================================================================== // // ProfileData.cc // // Copyright 2005 Jonathan Blandford // Copyright 2018 Adam Reichold // //======================================================================== #include #include "ProfileData.h" //------------------------------------------------------------------------ // ProfileData //------------------------------------------------------------------------ void ProfileData::addElement(double elapsed) { if (count == 0) { min = elapsed; max = elapsed; } else { if (elapsed < min) min = elapsed; if (elapsed > max) max = elapsed; } total += elapsed; count++; }