summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-src/poppler/ProfileData.h
blob: 664a60b0180ae6f674d54d7c7accdeaf5708234c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//========================================================================
//
// 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

#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif

//------------------------------------------------------------------------
// 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