Retrieve the timestamp of a sensor reading.
#include <bps/sensor.h>
BPS_API uint64_t sensor_event_get_timestamp(bps_event_t *event)
BlackBerry 10.0.0
The sensor event to get the timestamp of.
The sensor_event_get_timestamp() function gets the timestamp of the specified sensor event. The sensor event's time stamp is returned with each sensor reading. The time (in nanoseconds) is a reference from the monotonic clock from the last the device started up.
The timestamp of the sensor reading.