Tools.h++ Manual
104011 Tandem Computers Incorporated 21-13
21
virtual void report(ostream&) const;
Calling this function provides an easy and convenient way of getting an
overall summary of the results of a benchmark.
double setDuration(double t);
Change the test duration to time
t
.
unsigned long setInnerLoops(unsigned long N);
Change the number of "inner loop operations" to
N
.
virtual void what(ostream&) const;
You can supply a specializing version of this virtual function that provides
some detail of what is being benchmarked. It is called by
report()
when
generating a standard report.
void where(ostream&) const;
This function will print information to the stream about the compiler and
memory model that the code was compiled under.
unsigned long innerLoops() const;
Returns the current setting for the number of inner loop operations that will be
passed into function
doLoop(unsigned long N)
as parameter
N
.
double time() const;
Returns the amount of time the benchmark took, corrected for overhead.
unsigned long outerLoops() const;
Returns the number of times the function
doLoop()
was called.
double ops() const;
Returns the total number of inner loop operations that were performed (the
product of the number of times
outerLoop()
was called times the number of
inner loop operations performed per call).
double opsRate() const;
Returns the number of inner loop operations per second.