summaryrefslogtreecommitdiff
path: root/src/helpers/time/Timer.hpp
blob: c21f78db73835821ab8c6065bdbb0b6e4b56664b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "Time.hpp"

class CTimer {
  public:
    void                   reset();
    float                  getSeconds();
    float                  getMillis();
    const Time::steady_tp& chrono() const;

  private:
    Time::steady_tp  m_lastReset;

    Time::steady_dur getDuration();
};