#include <Kokkos_Time.hpp>
Public Member Functions | |
| Time () | |
| Time Constructor. | |
| Time (const Time &time) | |
| Time Copy Constructor. | |
| double | wallTime () const |
| Time wall-clock time function. | |
| void | resetStartTime () |
| Kokkos_Time function to reset the start time for a timer object. | |
| double | elapsedTime () const |
| Kokkos_Time elapsed time function. | |
| virtual | ~Time () |
| Kokkos_Time Destructor. | |
The Kokkos_Time class is a wrapper that encapsulates the general information needed getting timing information. Currently it return the elapsed time for each calling processor.. A Kokkos_Comm object is required for building all Kokkos_Time objects.
Kokkos_Time support both serial execution and (via MPI) parallel distributed memory execution. It is meant to insulate the user from the specifics of timing across a variety of platforms.
| Kokkos::Time::Time | ( | ) | [inline] |
| Kokkos::Time::Time | ( | const Time & | time | ) | [inline] |
| virtual Kokkos::Time::~Time | ( | ) | [inline, virtual] |
Kokkos_Time Destructor.
Completely deletes a Kokkos_Time object.
| double Kokkos::Time::elapsedTime | ( | ) | const [inline] |
Kokkos_Time elapsed time function.
Returns the elapsed time in seconds since the timer object was constructed, or since the ResetStartTime function was called. A code section can be timed by putting it between the Kokkos_Time constructor and a call to ElapsedTime, or between a call to ResetStartTime and ElapsedTime.
| void Kokkos::Time::resetStartTime | ( | ) | [inline] |
Kokkos_Time function to reset the start time for a timer object.
Resets the start time for the timer object to the current time A code section can be timed by putting it between a call to ResetStartTime and ElapsedTime.
| double Kokkos::Time::wallTime | ( | ) | const [inline] |
Time wall-clock time function.
Returns the wall-clock time in seconds. A code section can be timed by putting it between two calls to wallTime and taking the difference of the times.
1.4.7