This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Tortuga/client/delta.hpp
T
2013-05-02 20:28:12 +10:00

25 lines
279 B
C++

#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