diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-20 08:55:55 -0800 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-20 08:55:55 -0800 |
commit | 387c8e3c5b1e00c6e9e57bfb069a6bfed09411d9 (patch) | |
tree | 714fbfb7eea626a1c921c0979fc1506c2fde726b /src/util.h | |
parent | 74f5435e104be76cd342a9a196ed4a10b8a7e248 (diff) | |
parent | 1c4aab926e0b25e0c896d4703d858eda1eb14ea5 (diff) |
Merge pull request #673 from mndrix/less-time-data
Store fewer time samples
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 9fe95e37fd..bb90869962 100644 --- a/src/util.h +++ b/src/util.h @@ -598,6 +598,16 @@ public: return (vSorted[size/2-1] + vSorted[size/2]) / 2; } } + + int size() const + { + return vValues.size(); + } + + std::vector<T> sorted () const + { + return vSorted; + } }; |