GetTickCount: Difference between revisions
From Onset Developer Wiki
No edit summary |
FlyingFork (talk | contribs) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Returns the uptime of the actual computer (not the Onset application) in milliseconds.}} | ||
{{FuncSyntax|GetTickCount()}} | {{FuncSyntax|GetTickCount()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Uptime of the actual computer (not the Onset application)}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local tick = GetTickCount() | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
*[[GetTimeSeconds]] | |||
*[[GetDeltaSeconds]] | |||
*[[GetTickCount]] |
Latest revision as of 14:16, 26 June 2021
Description
Returns the uptime of the actual computer (not the Onset application) in milliseconds.
Syntax
GetTickCount()
Parameters
- This function has no parameters.
Return Value
- Uptime of the actual computer (not the Onset application)
Example
local tick = GetTickCount()