MCPcopy Create free account
hub / github.com/apache/trafficserver / measure

Function measure

lib/catch2/catch.hpp:6842–6848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6840 namespace Detail {
6841 template <typename Clock, typename Fun, typename... Args>
6842 TimingOf<Clock, Fun, Args...> measure(Fun&& fun, Args&&... args) {
6843 auto start = Clock::now();
6844 auto&& r = Detail::complete_invoke(fun, std::forward<Args>(args)...);
6845 auto end = Clock::now();
6846 auto delta = end - start;
6847 return { delta, std::forward<decltype(r)>(r), 1 };
6848 }
6849 } // namespace Detail
6850 } // namespace Benchmark
6851} // namespace Catch

Callers 1

measureMethod · 0.85

Calls 2

complete_invokeFunction · 0.85
nowClass · 0.70

Tested by

no test coverage detected