GetDeltaSeconds: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncSyntax|GetDeltaSeconds()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__MISSING_DOC__}} == Example == __MISSING_DOC__ {{Relate...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server & Client|1.0}}
 
{{FuncDescription|Gets the time between game ticks/frames.}}


{{FuncSyntax|GetDeltaSeconds()}}
{{FuncSyntax|GetDeltaSeconds()}}
Line 5: Line 7:
{{FuncParameters}}
{{FuncParameters}}
{{FuncNoParam}}
{{FuncNoParam}}
{{FuncReturnValue|__MISSING_DOC__}}
 
{{FuncReturnValue|Returns the delta time between the last game ticks/frames.}}


== Example ==
== Example ==
__MISSING_DOC__
<syntaxhighlight lang="Lua>
print("Delta Seconds: " .. GetDeltaSeconds())
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__MISSING_DOC__
*[[GetTimeSeconds]]
*[[GetDeltaSeconds]]
*[[GetTickCount]]

Latest revision as of 15:58, 27 June 2021

GetDeltaSeconds

Type: Function
Context: Server & Client
Introduced: v1.0

Description

Gets the time between game ticks/frames.

Syntax

GetDeltaSeconds()

Parameters

  • This function has no parameters.

Return Value

  • Returns the delta time between the last game ticks/frames.

Example

print("Delta Seconds: " .. GetDeltaSeconds())

See also