iOS Developer Library

Developer

CoreMotion Framework Reference CMLogItem Class Reference

Options
Deployment Target:

On This Page
Language:

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. More...

Import Statement


import CoreMotion @import CoreMotion;

Availability


Available in iOS 4.0 and later.
  • timestamp timestamp Property

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

    Declaration

    Swift

    var timestamp: NSTimeInterval { get }

    Objective-C

    @property(readonly, nonatomic) NSTimeInterval timestamp

    Discussion

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

    Import Statement

    import CoreMotion

    Availability

    Available in iOS 4.0 and later.