tickRealInterval function (#3218)

* tickRate function

* tickRealInterval

* Forgot
This commit is contained in:
Astralcircle 2024-12-14 11:43:40 +03:00 committed by GitHub
parent 3350456e76
commit b6c0954b02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -78,3 +78,7 @@ end
e2function number tickInterval() e2function number tickInterval()
return engine.TickInterval() return engine.TickInterval()
end end
e2function number tickRealInterval()
return engine.AbsoluteFrameTime()
end

View File

@ -976,6 +976,7 @@ E2Helper.Descriptions["printCaption(sn)"] = "Emits a closed caption with the pro
-- Time -- Time
E2Helper.Descriptions["tickClk()"] = "DEPRECATED. Use 'event tick()' instead! Returns 1 if the current execution was caused by \"runOnTick\"" E2Helper.Descriptions["tickClk()"] = "DEPRECATED. Use 'event tick()' instead! Returns 1 if the current execution was caused by \"runOnTick\""
E2Helper.Descriptions["tickInterval()"] = "Returns the time (in seconds) between each server tick" E2Helper.Descriptions["tickInterval()"] = "Returns the time (in seconds) between each server tick"
E2Helper.Descriptions["tickRealInterval()"] = "Returns the current time (in seconds) between each server tick"
E2Helper.Descriptions["curtime()"] = "Returns the current game time since server-start in seconds" E2Helper.Descriptions["curtime()"] = "Returns the current game time since server-start in seconds"
E2Helper.Descriptions["realtime()"] = "Returns the current real time since server-start in seconds" E2Helper.Descriptions["realtime()"] = "Returns the current real time since server-start in seconds"
E2Helper.Descriptions["systime()"] = "Returns a highly accurate time (also in seconds) since the server was started. Ideal for benchmarking" E2Helper.Descriptions["systime()"] = "Returns a highly accurate time (also in seconds) since the server was started. Ideal for benchmarking"