{"name":"diag_tickTime","title":"diag tickTime","type":"command","url":"https://community.bistudio.com/wiki/diag_tickTime","revid":379413,"updated":"2026-10-31T00:03:13Z","groups":["Diagnostic","Time"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Real time in seconds spent from the start of the game. On Windows the command uses [timeGetTime](https://docs.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timegettime).","syntaxes":[{"syntax":"diag_tickTime","params":[],"returns":{"type":"Number","type_expr":"Number","description":"time in seconds from game start"},"form":"nullary"}],"examples":[{"code":["// Measure execution time of a script\n_start = diag_tickTime;\n// code\n_stop = diag_tickTime;\ndiag_log format [\"%1\",_stop - _start];"]}],"see_also":["diag_fps","diag_fpsMin","diag_frameNo","diag_log","diag_deltaTime","time","systemTime","systemTimeUTC"],"notes":[{"user":"Killzone_Kid","date":"2014-01-25T00:00:00Z","text":"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."},{"user":"DreadedEntity","date":"2022-04-13T23:20:29Z","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"}]}