---
name: "diag_deltaTime"
type: command
status: ok
groups: ["Diagnostic", "Time"]
arma3_since: "1.96"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diag_deltaTime
revid: 309147
updated: 2022-05-03T14:08:33Z
---

# diag_deltaTime

*Command · Diagnostic, Time · Arma 3 v1.96*

## Description

Returns the duration of the previous frame in seconds

## Syntax

```sqf
diag_deltaTime
```

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
private _frameTime = diag_deltaTime;
```

### Example 2

```sqf
private _fps = 1 / diag_deltaTime;
```

## See also

[diag_tickTime](../commands/diag_tickTime.md) · [diag_fps](../commands/diag_fps.md) · [diag_fpsMin](../commands/diag_fpsMin.md) · [diag_frameNo](../commands/diag_frameNo.md) · [diag_log](../commands/diag_log.md) · [time](../commands/time.md)

<sub>Source: [BI Community Wiki — diag deltaTime](https://community.bistudio.com/wiki/diag_deltaTime) (revision 309147).</sub>
