Returns the elapsed time since the last event for a Quartz event source.
- macOS 10.4+
- Mac Catalyst 13.0+
- Core Graphics
The source state to access. Pass one of the constants listed in
Source State ID
The event type to access. To get the elapsed time since the previous input event—keyboard, mouse, or tablet—specify
CGAny Input Event Type
The time in seconds since the previous input event of the specified type.