Arma 3 Scripting

diag_tickTime

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · also in Time · Markdown · JSON · 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

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.

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