CMLogItem Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/CoreMotion.framework
Availability
Available in iOS 4.0 and later.
Declared in
CMLogItem.h

Overview

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 a read-only timestamp property that records the time a motion-event measurement was taken.

Tasks

Getting the Time of the Event

Properties

timestamp

The time when the logged item is valid. (read-only)

@property(readonly, nonatomic) NSTimeInterval timestamp
Discussion

The time stamp is the amount of time in seconds since the phone booted.

Availability
  • Available in iOS 4.0 and later.
Declared In
CMLogItem.h