MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / measure

Function measure

extlibs/catch/include/catch/catch.hpp:6621–6627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6619 namespace Detail {
6620 template <typename Clock, typename Fun, typename... Args>
6621 TimingOf<Clock, Fun(Args...)> measure(Fun&& fun, Args&&... args) {
6622 auto start = Clock::now();
6623 auto&& r = Detail::complete_invoke(fun, std::forward<Args>(args)...);
6624 auto end = Clock::now();
6625 auto delta = end - start;
6626 return { delta, std::forward<decltype(r)>(r), 1 };
6627 }
6628 } // namespace Detail
6629 } // namespace Benchmark
6630} // namespace Catch

Callers 1

measureMethod · 0.85

Calls 2

nowClass · 0.85
complete_invokeFunction · 0.85

Tested by

no test coverage detected