|
|
|||
File indexing completed on 2025-12-10 10:23:50
0001 //======================================================================== 0002 // 0003 // ProfileData.h 0004 // 0005 // Copyright 2005 Jonathan Blandford <jrb@gnome.org> 0006 // Copyright 2018 Adam Reichold <adam.reichold@t-online.de> 0007 // Copyright 2021 Albert Astals Cid <aacid@kde.org> 0008 // 0009 //======================================================================== 0010 0011 #ifndef PROFILE_DATA_H 0012 #define PROFILE_DATA_H 0013 0014 //------------------------------------------------------------------------ 0015 // ProfileData 0016 //------------------------------------------------------------------------ 0017 0018 class ProfileData 0019 { 0020 public: 0021 void addElement(double elapsed); 0022 0023 int getCount() const { return count; } 0024 double getTotal() const { return total; } 0025 double getMin() const { return min; } 0026 double getMax() const { return max; } 0027 0028 private: 0029 int count = 0; // size of <elems> array 0030 double total = 0.0; // number of elements in array 0031 double min = 0.0; // reference count 0032 double max = 0.0; // reference count 0033 }; 0034 0035 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|