mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add love.timer.getAverageDelta (issue #570) and constify love.timer.sleep
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user