blob: d51503be252e4311257e0a9f863619046ec1967a [file] [log] [blame]
//========================================================================
//
// ProfileData.h
//
// Copyright 2005 Jonathan Blandford <jrb@gnome.org>
// Copyright 2018 Adam Reichold <adam.reichold@t-online.de>
//
//========================================================================
#ifndef PROFILE_DATA_H
#define PROFILE_DATA_H
//------------------------------------------------------------------------
// ProfileData
//------------------------------------------------------------------------
class ProfileData {
public:
void addElement (double elapsed);
int getCount () const { return count; }
double getTotal () const { return total; }
double getMin () const { return max; }
double getMax () const { return max; }
private:
int count = 0; // size of <elems> array
double total = 0.0; // number of elements in array
double min = 0.0; // reference count
double max = 0.0; // reference count
};
#endif