10 #ifndef META_UTIL_TIME_H_
11 #define META_UTIL_TIME_H_
26 template <
class Duration = std::chrono::milliseconds,
class Functor>
27 Duration time(Functor&& functor)
29 auto start = std::chrono::steady_clock::now();
31 auto end = std::chrono::steady_clock::now();
32 return std::chrono::duration_cast<Duration>(end - start);