VTK-m
2.0
|
Class providing a device-specific timer. More...
#include <DeviceAdapterAlgorithm.h>
Classes | |
struct | TimeStamp |
Public Member Functions | |
VTKM_CONT | 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... | |
VTKM_CONT void | Reset () |
Resets the timer. More... | |
VTKM_CONT void | Start () |
VTKM_CONT void | Stop () |
VTKM_CONT bool | Started () const |
VTKM_CONT bool | Stopped () const |
VTKM_CONT bool | Ready () const |
VTKM_CONT 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... | |
VTKM_CONT 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 |