Class SteadyClockTimer

Inheritance Relationships

Base Type

Class Documentation

class SteadyClockTimer : public virtual flamegpu::detail::Timer

Class to simplify the finding of elapsed time using a chrono::steady_clock timer.

Public Functions

inline SteadyClockTimer()

Default constructor, initialising values.

inline ~SteadyClockTimer()

Default destructor

inline virtual void start() override

Record the start steady clock time

inline virtual void stop() override

Record the start steady clock stop time

inline virtual float getElapsedMilliseconds() override

Get the elapsed time between calls to start() and stop() in milliseconds

Returns:

elapsed time in milliseconds

inline virtual float getElapsedSeconds() override

Get the elapsed time between calls to start() and stop() in seconds

Returns:

elapsed time in milliseconds