60 const std::chrono::high_resolution_clock::time_point&
StartTime()
const;
62 const std::chrono::high_resolution_clock::time_point&
CurrentTime()
const;
64 const std::chrono::high_resolution_clock::time_point&
LastTime()
const;
78 std::chrono::high_resolution_clock::time_point mStartTime;
79 std::chrono::high_resolution_clock::time_point mCurrentTime;
80 std::chrono::high_resolution_clock::time_point mLastTime;
void Reset()
Resets the clock to the current system time.
void UpdateAppTime(AppTime &appTime)
Updates the given AppTime instance with elapsed and total durations.
AppClock()
Constructs a new clock initialized with the current time.
AppClock & operator=(AppClock &&)=default
const std::chrono::high_resolution_clock::time_point & CurrentTime() const
Returns the most recent recorded time (current frame).
AppClock & operator=(AppClock const &)=default
AppClock(AppClock &&)=default
AppClock(AppClock const &)=default
const std::chrono::high_resolution_clock::time_point & LastTime() const
Returns the time recorded at the previous frame.
const std::chrono::high_resolution_clock::time_point & StartTime() const
Returns the timestamp when the clock was started.
Manages current, total, and elapsed time for the application.