swift - How to get exact time since iOS device booted? -
this question has answer here:
i've encountered problem. need exact timeinterval since device booted. in coremotion framework cmlogitem class have timestamp property, returns exact time since device booted. (link) necessary in order measure exact time event occurred.
i tried following code:
let timestamp = processinfo.processinfo.systemuptime but returns different time need. appreciated, in advance!
after investigation of data provide. possible conclude cmlogitem:
the cmlogitem class base class core motion classes handle specific types of motion events. objects of class represent piece of time-tagged data can logged file.
cmlogitem defines read-only timestamp property records time motion-event measurement taken. not exact time since device booted.
by processinfo.processinfo.systemuptime going time last time restarted.
i believe data obtain quite specific , under private api of ios.
Comments
Post a Comment