mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- I_msTimeF.
This commit is contained in:
parent
9687facc88
commit
7bc8d2baff
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue