add input
add time
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
typedef chrono::steady_clock CLOCK;
|
||||
typedef CLOCK::time_point TIMEPOINT;
|
||||
typedef chrono::duration<FLOAT> SECONDS;
|
||||
|
||||
class Time
|
||||
{
|
||||
public:
|
||||
@@ -15,5 +19,6 @@ public:
|
||||
|
||||
private:
|
||||
FLOAT _deltaTime = 0.0f;
|
||||
TIMEPOINT _lastFrame = {};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user