---
title: timeStamp
framework: coremidi
role: symbol
role_heading: Instance Property
path: coremidi/midipacket/timestamp
---

# timeStamp

The MIDI packet timestamp.

## Declaration

```swift
var timeStamp: MIDITimeStamp
```

## Discussion

Discussion If receiving MIDI data, this property represents the time at which the events occurred. If sending MIDI data, it represents the time at which to play the events. A value of 0 means “now.” The time stamp applies to the first byte or word in the packet.

## See Also

### Configuring a Packet

- [length](coremidi/midipacket/length.md)
- [data](coremidi/midipacket/data.md)
