Class Timer

Inheritance Relationships

Derived Types

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