Timing touches on an iPad
I've been looking to try and measure t开发者_如何学运维he time between touch events (looking at the UITouch class). On the UITouch class there is the timeStamp property that gives this time but it is in seconds.
For the application I am looking at I would like to be able to measure in milliseconds.
Thanks
Just multiply the timestamp
by 1000 and you have milliseconds. The timestamp
property is defined as NSTimeInterval
which is actually a typedef for double
.
精彩评论