Changed *.h files to *.hpp
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef DELTA_HPP_
|
||||
#define DELTA_HPP_
|
||||
|
||||
#include <ctime>
|
||||
|
||||
class Delta {
|
||||
public:
|
||||
Delta() {
|
||||
time = tick = 0;
|
||||
}
|
||||
int Calculate() {
|
||||
int c = clock();
|
||||
time = c - tick;
|
||||
tick = c;
|
||||
return time;
|
||||
}
|
||||
int GetDelta() const {
|
||||
return time;
|
||||
};
|
||||
private:
|
||||
int time, tick;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user