diag tickTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:diag_tickTime}} | {{DISPLAYTITLE:diag_tickTime}} | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1= Diagnosis | |gr1= Diagnosis | ||
|gr2= Time | |gr2= Time | ||
| Real time in seconds spent from the start of the game. On Windows the command uses [https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timegettime timeGetTime]. | | Real time in seconds spent from the start of the game. On Windows the command uses [https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timegettime timeGetTime]. | ||
| '''diag_tickTime''' | | '''diag_tickTime''' | ||
|p1 | |p1= | ||
|p2 | |p2= | ||
|p3 | |p3= | ||
| [[Number]] | | [[Number]] | ||
Line 26: | Line 26: | ||
//code | //code | ||
_stop = [[diag_tickTime]]; | _stop = [[diag_tickTime]]; | ||
[[diag_log]] [[format]] ["%1",_stop - _start];</code> | [[diag_log]] [[format]] ["%1",_stop - _start];</code> | ||
| [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_log]], [[diag_deltaTime]], [[time]], [[systemTime]], [[systemTimeUTC]] | | [[diag_fps]], [[diag_fpsMin]], [[diag_frameNo]], [[diag_log]], [[diag_deltaTime]], [[time]], [[systemTime]], [[systemTimeUTC]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 00:28, 18 January 2021
Description
- Description:
- Real time in seconds spent from the start of the game. On Windows the command uses timeGetTime.
- Groups:
- DiagnosisTime
Syntax
- Syntax:
- diag_tickTime
- Return Value:
- Number
Examples
- Example 1:
_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
Notes
- Posted on 8 Sept, 2010
- Crowe
- In Arma 2 Operation Arrowhead 1.54.0.72888 this returns the time in seconds since the game was started.
- 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.