Arma 3 Scripting

Command in Diagnostic, Time

diag_tickTime

Also available as Markdown and JSON, or read the original wiki page.

Description

Real time in seconds spent from the start of the game. On Windows the command uses timeGetTime.

Syntax

diag_tickTime

Returns: 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];

See also

diag_fps · diag_fpsMin · diag_frameNo · diag_log · diag_deltaTime · time · systemTime · systemTimeUTC

Community notes

DreadedEntity

This command keeps incrementing if the player has paused the game, even in singleplayer. If time spent paused should not be considered, use time