Class Timer

Class Documentation

class Timer

The Timer class serves two purposes: 1) To provide a reliable and static call to Wtime() (since MPI_Wtime may not be available). 2) To provide a tidy way of profiling the code.

Public Functions

Timer(bool combinedstats = false)
Timer(int num_qubits_, int my_rank_, int num_procs_)
~Timer()
void Reset()
double Wtime()
void Start(std::string s, std::size_t cpos, std::size_t tpos = 999999)

Start the timer.

void record_sn(double time, double bw)
void record_dn(double time, double bw)
void record_tn(double time, double bw)
void record_cm(double time, double bw)
void Stop()

Stop the timer.

void Breakdown()

Print the statistics to screen.

Public Members

std::map<std::string, Time>::iterator curiter