1 #ifndef __MINLCA_MINLCA_OPT_PROFILER_HH
2 #define __MINLCA_MINLCA_OPT_PROFILER_HH
14 template<
class LCAOpt>
26 template<
typename... Args>
31 : ProfilerBase(
std::forward<Args>(args)...)
36 virtual void initialSolution(
const typename LCAOpt::Colouring &c)
39 Base::initialSolution(c);
double initialSolutionTime()
Retrieve the duration of setting the initial solution.
MinLCAOptProfiler(Args &&...args)
Constructor.
double _initial_sol_time
Duration of setting initial solution.
LCAOpt Base
Base MinLCA class.
Default namespace Default namespace for MinLCA algorithms.
utils::Timer _t
Timer used to count the durations.
Class for timing MinLCA algorithms.
double _creation_time
Duration of object creation.
MinLCAProfiler< LCAOpt > ProfilerBase
Base profiler.
Defines the base class for MinLCA optimisation algorithms.
Contains the definitions for timing MinLCA algorithms.
double elapsed() const
Retrieve elapsed time.
Class for timing MinLCA optimisation algorithms.
void restart()
Restart the timer.