PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
elapsed.h
1#pragma once
2
3#include "pixelbullet/time/duration.h"
4#include "pixelbullet/time/timer.h"
5
6namespace pixelbullet
7{
8class Elapsed
9{
10public:
11 explicit Elapsed(Duration duration);
12
15 float GetElapsed();
16
17private:
18 Duration duration_;
19 Timer timer_;
20};
21} // namespace pixelbullet
A lightweight duration class that holds a time span in seconds.
Definition duration.h:9
Definition elapsed.h:9
float GetElapsed()
Definition elapsed.cc:11
A high-resolution timer for measuring elapsed time.
Definition timer.h:9