blob: f8fa3310434976ecf36f08c11d570b4bb223553d [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 ++;
}