How to get exact time since iOS device booted? [duplicate]
This question already has an answer here:
Getting iOS system uptime, that doesn't pause when asleep
6 answers
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!
ios swift core-motion
marked as duplicate by ayaio, Rob Napier
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Apr 7 '17 at 12:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Getting iOS system uptime, that doesn't pause when asleep
6 answers
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!
ios swift core-motion
marked as duplicate by ayaio, Rob Napier
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Apr 7 '17 at 12:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Getting iOS system uptime, that doesn't pause when asleep
6 answers
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!
ios swift core-motion
This question already has an answer here:
Getting iOS system uptime, that doesn't pause when asleep
6 answers
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!
This question already has an answer here:
Getting iOS system uptime, that doesn't pause when asleep
6 answers
ios swift core-motion
ios swift core-motion
asked Apr 7 '17 at 11:03


Andrey M.Andrey M.
1,2541229
1,2541229
marked as duplicate by ayaio, Rob Napier
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Apr 7 '17 at 12:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by ayaio, Rob Napier
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
Apr 7 '17 at 12:15
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
After investigation of the data you provide. It is possible to conclude that CMLogItem
:
The CMLogItem class is a base class for Core Motion classes that
handle specific types of motion events. Objects of this class
represent a piece of time-tagged data that can be logged to a file.
CMLogItem defines only a read-only timestamp property that records the time a motion-event measurement was taken. Not the exact time since device was booted.
By ProcessInfo.processInfo.systemUptime
you going to get time from the last time it was restarted.
I believe data that you would like to obtain is quite specific and is under Private API of the iOS.
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After investigation of the data you provide. It is possible to conclude that CMLogItem
:
The CMLogItem class is a base class for Core Motion classes that
handle specific types of motion events. Objects of this class
represent a piece of time-tagged data that can be logged to a file.
CMLogItem defines only a read-only timestamp property that records the time a motion-event measurement was taken. Not the exact time since device was booted.
By ProcessInfo.processInfo.systemUptime
you going to get time from the last time it was restarted.
I believe data that you would like to obtain is quite specific and is under Private API of the iOS.
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
add a comment |
After investigation of the data you provide. It is possible to conclude that CMLogItem
:
The CMLogItem class is a base class for Core Motion classes that
handle specific types of motion events. Objects of this class
represent a piece of time-tagged data that can be logged to a file.
CMLogItem defines only a read-only timestamp property that records the time a motion-event measurement was taken. Not the exact time since device was booted.
By ProcessInfo.processInfo.systemUptime
you going to get time from the last time it was restarted.
I believe data that you would like to obtain is quite specific and is under Private API of the iOS.
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
add a comment |
After investigation of the data you provide. It is possible to conclude that CMLogItem
:
The CMLogItem class is a base class for Core Motion classes that
handle specific types of motion events. Objects of this class
represent a piece of time-tagged data that can be logged to a file.
CMLogItem defines only a read-only timestamp property that records the time a motion-event measurement was taken. Not the exact time since device was booted.
By ProcessInfo.processInfo.systemUptime
you going to get time from the last time it was restarted.
I believe data that you would like to obtain is quite specific and is under Private API of the iOS.
After investigation of the data you provide. It is possible to conclude that CMLogItem
:
The CMLogItem class is a base class for Core Motion classes that
handle specific types of motion events. Objects of this class
represent a piece of time-tagged data that can be logged to a file.
CMLogItem defines only a read-only timestamp property that records the time a motion-event measurement was taken. Not the exact time since device was booted.
By ProcessInfo.processInfo.systemUptime
you going to get time from the last time it was restarted.
I believe data that you would like to obtain is quite specific and is under Private API of the iOS.
answered Apr 7 '17 at 11:35


Oleg GordiichukOleg Gordiichuk
9,79853873
9,79853873
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
add a comment |
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
Thanks for response.
– Andrey M.
Apr 10 '17 at 7:24
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
here developer.apple.com/reference/coremotion/cmlogitem/… you can see that timestamp is amount of time since the device booted.
– Andrey M.
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
@AndreyM. thx for sharing of the info
– Oleg Gordiichuk
Apr 24 '17 at 8:59
add a comment |