Group Group Group Group Group Group Group Group Group

What does timestamp mean

#1

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.

#2

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

#3

But why is the number so big? 4321045?

#4

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
#5

thank you very much~