1#ifndef KOKKOS_UTILS_TIMER_EVENT_HPP
2#define KOKKOS_UTILS_TIMER_EVENT_HPP
27template <Kokkos::utils::concepts::ExecutionSpace Exec>
36 event = std::chrono::steady_clock::now();
40 template <
typename Duration>
42 return std::chrono::duration_cast<Duration>(other.
event -
event);
48#ifdef KOKKOS_ENABLE_CUDA
52#ifdef KOKKOS_ENABLE_HIP
void record(const Exec &)
Record this event in the execution space exec.
Duration duration(const Event &other) const
Get a Duration object between this event and other.
std::chrono::steady_clock::time_point impl_event_t