NimbleSM
NimbleSM is a solid mechanics simulation code for dynamic systems
Loading...
Searching...
No Matches
nimble_kokkos::ProfilingTimer Class Reference

#include <nimble_kokkos_profiling.h>

Public Member Functions

 ProfilingTimer ()=default
 
void push_region (const std::string &profiling_region_name)
 
double pop_region_and_report_time () const
 

Constructor & Destructor Documentation

◆ ProfilingTimer()

nimble_kokkos::ProfilingTimer::ProfilingTimer ( )
inlinedefault

Member Function Documentation

◆ pop_region_and_report_time()

double nimble_kokkos::ProfilingTimer::pop_region_and_report_time ( ) const
inline
23 {
24 double t = timer.seconds();
25 Kokkos::Profiling::popRegion();
26 return t;
27 }

◆ push_region()

void nimble_kokkos::ProfilingTimer::push_region ( const std::string & profiling_region_name)
inline
16 {
17 Kokkos::Profiling::pushRegion("NimbleSM: " + profiling_region_name);
18 timer.reset();
19 }

The documentation for this class was generated from the following file: