MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / measure_ms

Function measure_ms

src/framework/audio/dsp.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22template <typename Fn>
23double measure_ms(Fn && fn) {
24 const auto started = std::chrono::steady_clock::now();
25 std::forward<Fn>(fn)();
26 const auto ended = std::chrono::steady_clock::now();
27 return std::chrono::duration<double, std::milli>(ended - started).count();
28}
29
30int64_t checked_product(std::initializer_list<int64_t> dims) {
31 int64_t result = 1;

Callers 11

computeMethod · 0.70
prepareMethod · 0.50
prepareMethod · 0.50
decodeMethod · 0.50
generateMethod · 0.50
run_in_placeMethod · 0.50
prompt_stateMethod · 0.50
generateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected