I've encountered a problem. I need to get the exact TimeInterval since the device was booted. In the CoreMotion framework CMLogItem class have timestamp property, it returns exact time since device was booted. (link) This is necessary in order to measure the exact time for which the event occurred.
I tried the following code:
let timestamp = ProcessInfo.processInfo.systemUptime
but it returns different time than i need. Any help is appreciated, thanks in advance!