~ubuntu-branches/debian/stretch/bitcoin/stretch

« back to all changes in this revision

Viewing changes to src/bench/bench.h

  • Committer: Package Import Robot
  • Author(s): Anthony Towns
  • Date: 2016-10-21 17:13:13 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20161021171313-7eu2ltpbk0xag3q1
Tags: 0.13.0-0.1
* Non-maintainer upload.
* New upstream release.
* Allow compilation with gcc/g++ 6. (Closes: Bug#835963)
* Additional fixes for openssl 1.1 compatibility. (See Bug#828248)
* Check if -latomic is needed (it is on mips*).
* Remove reproducible build patch, since leveldb build system is
  no longer used in 0.13. (See Bug#791834)
* Update description since the blockchain is much more than "several GB"
  now. (Closes: Bug#835809)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        std::string name;
41
41
        double maxElapsed;
42
42
        double beginTime;
43
 
        double lastTime, minTime, maxTime;
 
43
        double lastTime, minTime, maxTime, countMaskInv;
44
44
        int64_t count;
45
 
        int64_t timeCheckCount;
 
45
        int64_t countMask;
46
46
    public:
47
47
        State(std::string _name, double _maxElapsed) : name(_name), maxElapsed(_maxElapsed), count(0) {
48
48
            minTime = std::numeric_limits<double>::max();
49
49
            maxTime = std::numeric_limits<double>::min();
50
 
            timeCheckCount = 1;
 
50
            countMask = 1;
 
51
            countMaskInv = 1./(countMask + 1);
51
52
        }
52
53
        bool KeepRunning();
53
54
    };