---
title: timestamp
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitouch/timestamp
---

# timestamp

The time when the touch occurred or when it was last mutated.

## Declaration

```swift
var timestamp: TimeInterval { get }
```

## Discussion

Discussion The value of this property is the time, in seconds since system startup, that the touch originated or was last changed. You can store the value of this property and compare it to the timestamp in subsequent UITouch objects to determine the duration of the touch and, if it is being swiped, the speed of movement. For a definition of the time since system startup, see the description of the systemUptime method of the ProcessInfo class.

## See Also

### Getting touch attributes

- [tapCount](uikit/uitouch/tapcount.md)
- [type](uikit/uitouch/type.md)
- [UITouch.TouchType](uikit/uitouch/touchtype.md)
- [phase](uikit/uitouch/phase-swift.property.md)
- [UITouch.Phase](uikit/uitouch/phase-swift.enum.md)
- [force](uikit/uitouch/force.md)
- [maximumPossibleForce](uikit/uitouch/maximumpossibleforce.md)
- [altitudeAngle](uikit/uitouch/altitudeangle.md)
- [azimuthAngle(in:)](uikit/uitouch/azimuthangle(in:).md)
- [azimuthUnitVector(in:)](uikit/uitouch/azimuthunitvector(in:).md)
- [rollAngle](uikit/uitouch/rollangle.md)
