18 template<
typename TCallable>
21 auto const start = std::chrono::high_resolution_clock::now();
22 std::forward<TCallable>(callable)();
23 auto const end = std::chrono::high_resolution_clock::now();
24 return std::chrono::duration_cast<std::chrono::milliseconds>(
end - start).count();
28 template<
typename TQueue,
typename TTask>
31#if ALPAKA_DEBUG >= ALPAKA_DEBUG_MINIMAL
32 std::cout <<
"measureKernelRunTime("
auto clipCast(V const &val) -> T
auto measureTaskRunTimeMs(TQueue &queue, TTask &&task) -> std::chrono::milliseconds::rep
auto measureRunTimeMs(TCallable &&callable) -> std::chrono::milliseconds::rep
Measures and returns the runtime in ms of the passed callable.
ALPAKA_FN_HOST auto end(TView &view) -> Iterator< TView >
ALPAKA_FN_HOST auto enqueue(TQueue &queue, TTask &&task) -> void
Queues the given task in the given queue.
ALPAKA_FN_HOST auto wait(TAwaited const &awaited) -> void
Waits the thread for the completion of the given awaited action to complete.