---
title: "element::age"
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/element/age
---

# element::age

Returns the current age of the element in seconds.

## Declaration

```swift
float element::age()
```

## Return Value

Return Value The age in seconds since the element was created

## Discussion

Discussion Use this function to determine how long the element has existed, which is useful for time-based effects and animations. note:
