VTK-m
2.2
|
Class providing a device-specific timer. More...
#include <DeviceAdapterAlgorithm.h>
Classes | |
struct | TimeStamp |
Public Member Functions | |
DeviceAdapterTimerImplementation () | |
When a timer is constructed, all threads are synchronized and the current time is marked so that GetElapsedTime returns the number of seconds elapsed since the construction. More... | |
void | Reset () |
Resets the timer. More... | |
void | Start () |
void | Stop () |
bool | Started () const |
bool | Stopped () const |
bool | Ready () const |
vtkm::Float64 | GetElapsedTime () const |
Returns the elapsed time in seconds between the construction of this class or the last call to Reset and the time this function is called. More... | |
TimeStamp | GetCurrentTime () const |
Public Attributes | |
bool | StartReady |
bool | StopReady |
TimeStamp | StartTime |
TimeStamp | StopTime |
Class providing a device-specific timer.
The class provide the actual implementation used by vtkm::cont::Timer. A default implementation is provided but device adapters should provide one (in conjunction with DeviceAdapterAlgorithm) where appropriate. The interface for this class is exactly the same as vtkm::cont::Timer.
|
inline |
When a timer is constructed, all threads are synchronized and the current time is marked so that GetElapsedTime returns the number of seconds elapsed since the construction.
|
inline |
|
inline |
Returns the elapsed time in seconds between the construction of this class or the last call to Reset and the time this function is called.
The time returned is measured in wall time. GetElapsedTime may be called any number of times to get the progressive time. This method synchronizes all asynchronous operations.
|
inline |
|
inline |
Resets the timer.
All further calls to GetElapsedTime will report the number of seconds elapsed since the call to this. This method synchronizes all asynchronous operations.
|
inline |
|
inline |
|
inline |
|
inline |
bool vtkm::cont::DeviceAdapterTimerImplementation< DeviceAdapterTag >::StartReady |
TimeStamp vtkm::cont::DeviceAdapterTimerImplementation< DeviceAdapterTag >::StartTime |
bool vtkm::cont::DeviceAdapterTimerImplementation< DeviceAdapterTag >::StopReady |
TimeStamp vtkm::cont::DeviceAdapterTimerImplementation< DeviceAdapterTag >::StopTime |