- I_msTimeF.

This commit is contained in:
Christoph Oelckers 2020-06-20 11:55:30 +02:00
parent 9687facc88
commit 7bc8d2baff
2 changed files with 8 additions and 0 deletions

View file

@ -142,6 +142,11 @@ uint64_t I_msTime()
return NSToMS(I_nsTime());
}
double I_msTimeF(void)
{
return I_nsTime() / 1'000'000.;
}
uint64_t I_msTimeFS() // from "start"
{
return (FirstFrameStartTime == 0) ? 0 : NSToMS(I_nsTime() - FirstFrameStartTime);

View file

@ -25,6 +25,9 @@ void I_FreezeTime(bool frozen);
// [RH] Returns millisecond-accurate time
uint64_t I_msTime();
// [RH] Returns nanosecond-accurate time in milliseconds
double I_msTimeF(void);
// [SP] Returns millisecond-accurate time from start
uint64_t I_msTimeFS();