iPhone Data Usage Tracking/Monitoring

前端 未结 7 1266
感情败类
感情败类 2020-11-22 04:08

I\'ve searched over this topic but found very few details which were helpful. With these details I\'ve tried to cook some code as follows.

Note: Please compa

7条回答
  •  别跟我提以往
    2020-11-22 04:23

    It's important to understand that these counters are provided since the device's last boot.

    So, to make effective use of them, you should accompany every sample with the device's uptime (you can use mach_absolute_time() - see this for more information)

    Once you have counters samples + uptime you can have better heuristics as to data use...

提交回复
热议问题