FMGTimer.h

class FMGTimer

Parent classes:

  • dolfin::Timer

This is an fmg specific extension to dolfin::Timer. Example usage:

{
  FMGTimer t1("task1");

  // do something here
}

std::cout << FMGTimer::get_sum("task1") << std::endl;

Note

dolfin::list_timings() will show all FMGTimer tasks prefixed with “fmg: ”.

Methods:

FMGTimer(const std::string& task)

Create timer. The task parameter is an identifier used to collect timing information over several instance creations.

double stop()

Stop timer

void start()

Start timer

static void reset_all()

Clear all recorded timings.

static void reset(const std::string& task)

Reset the timings of task.

static bool have_task(const std::string& task)

Returns true if timings are available for task.

static uint get_reps(const std::string& task)

Get the number of repetitions of task.

static double get_sum(const std::string& task)

Get the total time of task.

static double get_min(const std::string& task)

Get the minimum time of task.

static double get_max(const std::string& task)

Get the maximum time of task.

static double get_mean(const std::string& task)

Get the mean time of task.

Previous topic

Compat.h

Next topic

PETScExt.h

This Page