Add love.timer.getAverageDelta (issue #570) and constify love.timer.sleep

This commit is contained in:
Bart van Strien
2013-03-10 22:07:24 +01:00
parent 738f471978
commit 28af989a00
6 changed files with 22 additions and 3 deletions
+3 -1
View File
@@ -54,9 +54,10 @@ public:
const char *getName() const;
void step();
void sleep(double seconds);
void sleep(double seconds) const;
double getDelta() const;
int getFPS() const;
double getAverageDelta() const;
double getTime() const;
double getMicroTime() const;
@@ -69,6 +70,7 @@ private:
// Updated with a certain frequency.
int fps;
double averageDelta;
// The frequency by which to update the FPS.
double fpsUpdateFrequency;