blob: 8d874456cdb40d6362b55e3d1d5c5c57b380c0d2 [file] [log] [blame]
//========================================================================
//
// ProfileData.cc
//
// Copyright 2005 Jonathan Blandford <jrb@gnome.org>
// Copyright 2018 Adam Reichold <adam.reichold@t-online.de>
//
//========================================================================
#include <config.h>
#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++;
}