diag_tickTime

From Bohemia Interactive Community
Revision as of 16:37, 20 January 2022 by Lou Montana (talk | contribs) (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Jump to navigation Jump to search
Hover & click on the images for description

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

See also:
diag_fps diag_fpsMin diag_frameNodiag_logdiag_deltaTimetimesystemTimesystemTimeUTC

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.