---
title: "graph::deltaTime"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/graph/deltatime
---

# graph::deltaTime

Returns the time elapsed since the last frame.

## Declaration

```swift
float graph::deltaTime()
```

## Return Value

Return Value The delta time in seconds

## Discussion

Discussion Delta time represents the duration between the current frame and the previous frame, allowing for frame-rate independent animations and simulations. note:
