timing

dolfin.cpp.common.timing(task: 'std::string', clear: 'dolfin::TimingClear') → 'std::tuple< std::size_t,double,double,double >'

Return timing (count, total wall time, total user time, total system time) for given task, optionally clearing all timings for the task

Arguments
task (str)
name of a task
clear (TimingClear)
  • TimingClear_clear resets stored timings
  • TimingClear_keep leaves stored timings intact
Returns
std::tuple<std::size_t, double, double, double>
(count, total wall time, total user time, total system time)