Benchmark
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;
}
- this
this(in string funcname, in size_t rounds, in string filename)
A destructor is present on this object, but not explicitly documented in the source.
- 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.
This struct takes care of the time taking and outputting of the statistics.