diag tickTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
Lou Montana (talk | contribs) m (Text replacement - "<dl class='command_description'>" to "<dl class="command_description">") |
||
Line 32: | Line 32: | ||
}} | }} | ||
<dl class= | <dl class="command_description"> | ||
<dd class="notedate">Posted on 25 Jan, 2014</dd> | <dd class="notedate">Posted on 25 Jan, 2014</dd> | ||
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]<dd class="note"> | <dt class="note">[[User:Killzone_Kid|Killzone_Kid]]<dd class="note"> | ||
This command will return time since last client restart as float. However because of [[Number]] format used in Arma, the more time has past since restart the less precise the returned value will be. | This command will return time since last client restart as float. However because of [[Number]] format used in Arma, the more time has past since restart the less precise the returned value will be. | ||
</dl> | </dl> |
Revision as of 17:14, 21 May 2021
Description
- Description:
- Real time in seconds spent from the start of the game. On Windows the command uses timeGetTime.
- Groups:
- DiagnosticTime
Syntax
- Syntax:
- diag_tickTime
- Return Value:
- Number - Time in seconds from game start
Examples
- Example 1:
// Measure execution time of a script _start = diag_tickTime; // code _stop = diag_tickTime; diag_log format ["%1",_stop - _start];
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on 25 Jan, 2014
- Killzone_Kid
- This command will return time since last client restart as float. However because of Number format used in Arma, the more time has past since restart the less precise the returned value will be.