5 #ifndef _DDS_TIMEMEASURE_H_ 6 #define _DDS_TIMEMEASURE_H_ 12 template <
typename TimeT = std::chrono::milliseconds>
15 template <
typename F,
typename... Args>
16 static typename TimeT::rep
execution(F func, Args&&... args)
18 auto start = std::chrono::system_clock::now();
21 func(std::forward<Args>(args)...);
23 auto duration = std::chrono::duration_cast<TimeT>(std::chrono::system_clock::now() - start);
25 return duration.count();
Definition: TimeMeasure.h:13
static TimeT::rep execution(F func, Args &&... args)
Definition: TimeMeasure.h:16
Definition: BoostHelper.h:14