summaryrefslogtreecommitdiff
path: root/src/helpers/time/Timer.hpp
blob: 3d5e019730d8082a1202f493e82911ba53a11ae7 (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() const;
    float                  getMillis() const;
    const Time::steady_tp& chrono() const;

  private:
    Time::steady_tp  m_lastReset;

    Time::steady_dur getDuration() const;
};