What does timestamp mean

I am trying to calculate the velocity of the Apple Pencil moving on the screen, so I record the timestamp in the touchesMoved method. I printed this to the console:

what does this printed number mean? I am very confused.

https://developer.apple.com/documentation/uikit/uitouch/1618144-timestamp

But why is the number so big? 4321045?

Hi @feanor,
if you read the documentation at the link above, you will find it mentions that it is
The value of this property is the time, in seconds since system startup
hope that answers your question

cheers,

1 Like

thank you very much~

This topic was automatically closed after 166 days. New replies are no longer allowed.