Benchmark

This struct takes care of the time taking and outputting of the statistics.

struct Benchmark {
string filename;
string funcname;
size_t rounds;
string timeScale;
real medianStopWatch;
bool dontWrite;
Appender!(Duration[]) ticks;
size_t ticksIndex;
size_t curRound;
MonoTimeImpl!(ClockType.precise) startTime;
Duration timeSpend;
}

Constructors

this
this(in string funcname, in size_t rounds, in string filename)

The constructor for the Benchmark.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

start
void start()

A call to this method will start the time taking process

stop
void stop()

A call to this method will stop the time taking process, and appends the execution time to the ticks member.

Meta