---
name: "diag_tickTime"
type: command
status: ok
groups: ["Diagnostic", "Time"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diag_tickTime
revid: 369360
updated: 2024-09-03T18:43:06Z
---

# diag_tickTime

*Command · Diagnostic, Time · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## 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).

## Syntax

```sqf
diag_tickTime
```

**Returns:** [Number](../topics/Number.md) - time in seconds from game start

## Examples

### Example 1

```sqf
// Measure execution time of a script
_start = diag_tickTime;
// code
_stop = diag_tickTime;
diag_log format ["%1",_stop - _start];
```

## See also

[diag_fps](../commands/diag_fps.md) · [diag_fpsMin](../commands/diag_fpsMin.md) · [diag_frameNo](../commands/diag_frameNo.md) · [diag_log](../commands/diag_log.md) · [diag_deltaTime](../commands/diag_deltaTime.md) · [time](../commands/time.md) · [systemTime](../commands/systemTime.md) · [systemTimeUTC](../commands/systemTimeUTC.md)

## Community notes

**DreadedEntity** — 2022-04-13

This command keeps incrementing if the player has paused the game, even in singleplayer. If time spent paused should not be considered, use [time](../commands/time.md)

<sub>Source: [BI Community Wiki — diag tickTime](https://community.bistudio.com/wiki/diag_tickTime) (revision 369360).</sub>
