mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
34 lines
807 B
Plaintext
34 lines
807 B
Plaintext
//========================================================================
|
|
//
|
|
// 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++;
|
|
}
|