1//========================================================================
2//
3// ProfileData.h
4//
5// Copyright 2005 Jonathan Blandford <jrb@gnome.org>
6// Copyright 2018 Adam Reichold <adam.reichold@t-online.de>
7// Copyright 2021 Albert Astals Cid <aacid@kde.org>
8//
9//========================================================================
10
11#ifndef PROFILE_DATA_H
12#define PROFILE_DATA_H
13
14//------------------------------------------------------------------------
15// ProfileData
16//------------------------------------------------------------------------
17
18class ProfileData
19{
20public:
21 void addElement(double elapsed);
22
23 int getCount() const { return count; }
24 double getTotal() const { return total; }
25 double getMin() const { return min; }
26 double getMax() const { return max; }
27
28private:
29 int count = 0; // size of <elems> array
30 double total = 0.0; // number of elements in array
31 double min = 0.0; // reference count
32 double max = 0.0; // reference count
33};
34
35#endif
36

source code of poppler/poppler/ProfileData.h