---
title: timestamp
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsevent/timestamp
---

# timestamp

The time when the event occurred in seconds since system startup.

## Declaration

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

## See Also

### Related Documentation

- [systemUptime](foundation/processinfo/systemuptime.md)

### Getting general event information

- [locationInWindow](appkit/nsevent/locationinwindow.md)
- [window](appkit/nsevent/window.md)
- [windowNumber](appkit/nsevent/windownumber.md)
- [eventRef](appkit/nsevent/eventref.md)
- [cgEvent](appkit/nsevent/cgevent.md)
- [foreverDuration](appkit/nsevent/foreverduration.md)
