~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/poppler/ProfileData.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// ProfileData.h
 
4
//
 
5
// Copyright 2005 Jonathan Blandford <jrb@gnome.org>
 
6
//
 
7
//========================================================================
 
8
 
 
9
#ifndef PROFILE_DATA_H
 
10
#define PROFILE_DATA_H
 
11
 
 
12
#ifdef USE_GCC_PRAGMAS
 
13
#pragma interface
 
14
#endif
 
15
 
 
16
//------------------------------------------------------------------------
 
17
// ProfileData
 
18
//------------------------------------------------------------------------
 
19
 
 
20
class ProfileData {
 
21
public:
 
22
 
 
23
  // Constructor.
 
24
  ProfileData ();
 
25
 
 
26
  // Destructor.
 
27
  ~ProfileData() {}
 
28
 
 
29
  void addElement (double elapsed);
 
30
  int getCount () { return count; }
 
31
  double getTotal () { return total; }
 
32
  double getMin () { return max; }
 
33
  double getMax () { return max; }
 
34
private:
 
35
  int count;                    // size of <elems> array
 
36
  double total;                 // number of elements in array
 
37
  double min;                   // reference count
 
38
  double max;                   // reference count
 
39
};
 
40
 
 
41
#endif