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:
Joel Schumacher
2020-05-21 15:56:57 +02:00
parent 8d627c88ae
commit 0a5db1ba6d
2 changed files with 66 additions and 47 deletions
-6
View File
@@ -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