mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Subtract start time before double conversion
To preserve precision the subtraction of the start time happens with integer values now and the platform specific implementations have been split completely.
This commit is contained in:
@@ -101,12 +101,6 @@ private:
|
||||
// The current timestep.
|
||||
double dt;
|
||||
|
||||
// Returns the timer period on some platforms.
|
||||
static double getTimerPeriod();
|
||||
|
||||
// Like getTime, but relative to an unspecified time.
|
||||
static double getTimeAbsolute();
|
||||
|
||||
}; // Timer
|
||||
|
||||
} // timer
|
||||
|
||||
Reference in New Issue
Block a user