Class Timer
Defined in File Timer.h
Inheritance Relationships
Derived Types
public flamegpu::detail::CUDAEventTimer
(Class CUDAEventTimer)public flamegpu::detail::SteadyClockTimer
(Class SteadyClockTimer)
Class Documentation
-
class Timer
Virtual Base Timer class used to standardise the API for different timer implementations.
Subclassed by flamegpu::detail::CUDAEventTimer, flamegpu::detail::SteadyClockTimer
Public Functions
-
virtual ~Timer() = default
Default Destructor
-
virtual void start() = 0
Start recording with this timer
-
virtual void stop() = 0
Stop recording the timer.
-
virtual float getElapsedMilliseconds() = 0
Get the time elapsed in milliseconds
-
virtual float getElapsedSeconds() = 0
Get the time elapsed in seconds
-
virtual ~Timer() = default