开发者

Timing touches on an iPad

开发者 https://www.devze.com 2023-02-06 22:43 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号