-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHRTimer.h
31 lines (31 loc) · 983 Bytes
/
HRTimer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
//-----------------------------------------------------------------
//-----------------------------------------------------------------
class HRTimer
{
//-------------------------------------------------------------
public:
//---------------------------------------------------------
double HRT_TargetTime;
double HRT_DeltaTime;
double HRT_Offset;
double HRT_Accumulator;
//---------------------------------------------------------
//constructors
HRTimer(void);
~HRTimer(void);
//---------------------------------------------------------
//functions
void Init(void);
void Update(void);
//-------------------------------------------------------------
private:
//---------------------------------------------------------
LARGE_INTEGER iFrequency;
LARGE_INTEGER counter;
double HRT_NewTime;
double HRT_CurrentTime;
//---------------------------------------------------------
//functions
//---------------------------------------------------------
};