开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜