Template Function funcTime

Function Documentation

template<typename F, typename ...Args>
double funcTime(F func, Args&&... args)

Calls func(args…) and measures how long the call takes.

Parameters
  • func – callable to time

  • args – arguments forwarded to func

Returns

the elapsed time in whole milliseconds