1//========================================================================
2//
3// ProfileData.cc
4//
5// Copyright 2005 Jonathan Blandford <jrb@gnome.org>
6// Copyright 2018 Adam Reichold <adam.reichold@t-online.de>
7//
8//========================================================================
9
10#include <config.h>
11
12#include "ProfileData.h"
13
14//------------------------------------------------------------------------
15// ProfileData
16//------------------------------------------------------------------------
17
18void ProfileData::addElement(double elapsed)
19{
20 if (count == 0) {
21 min = elapsed;
22 max = elapsed;
23 } else {
24 if (elapsed < min) {
25 min = elapsed;
26 }
27 if (elapsed > max) {
28 max = elapsed;
29 }
30 }
31 total += elapsed;
32 count++;
33}
34

source code of poppler/poppler/ProfileData.cc