diag tickTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(52 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 | | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |gr1= Diagnostic | ||
| | |gr2= Time | ||
| | |descr= Real time in seconds spent from the start of the game. On Windows the command uses {{Link|https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timegettime|timeGetTime}}. | ||
| [[ | |s1= [[diag_tickTime]] | ||
|r1= [[Number]] - time in seconds from game start | |||
|x1= < | |x1= <sqf> | ||
//code | // Measure execution time of a script | ||
_stop = | _start = diag_tickTime; | ||
// code | |||
_stop = diag_tickTime; | |||
diag_log format ["%1",_stop - _start]; | |||
</sqf> | |||
|seealso= [[diag_fps]] [[diag_fpsMin]] [[diag_frameNo]] [[diag_log]] [[diag_deltaTime]] [[time]] [[systemTime]] [[systemTimeUTC]] | |||
| [[diag_fps]] | |||
}} | }} | ||
<dl class="command_description"> | |||
<dl class= | |||
<dd class="notedate">Posted on 25 Jan, 2014 | <dt></dt> | ||
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]<dd class="note"> | <dd class="notedate">Posted on 25 Jan, 2014</dd> | ||
<dt class="note">[[User:Killzone_Kid|Killzone_Kid]]</dt> | |||
<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> | ||
{{Note | |||
|user= DreadedEntity | |||
|timestamp= 20220413232029 | |||
|text= This command keeps incrementing if the player has paused the game, even in singleplayer. If time spent paused should not be considered, use [[time]] | |||
[[ | }} | ||
Latest revision as of 19:43, 3 September 2024
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:
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.
- Posted on Apr 13, 2022 - 23:20 (UTC)
- This command keeps incrementing if the player has paused the game, even in singleplayer. If time spent paused should not be considered, use time