Program Listing for File Timer.h

Return to documentation for file (include/flamegpu/detail/Timer.h)

#ifndef INCLUDE_FLAMEGPU_DETAIL_TIMER_H_
#define INCLUDE_FLAMEGPU_DETAIL_TIMER_H_


namespace flamegpu {
namespace detail {

class Timer {
 public:
    virtual ~Timer() = default;

    virtual void start() = 0;

    virtual void stop() = 0;

    virtual float getElapsedMilliseconds() = 0;

    virtual float getElapsedSeconds() = 0;
};

}  // namespace detail
}  // namespace flamegpu

#endif  // INCLUDE_FLAMEGPU_DETAIL_TIMER_H_