sensor_event_get_timestamp()

Retrieve the timestamp of a sensor reading.

Synopsis:

#include <bps/sensor.h>
 
BPS_API uint64_t sensor_event_get_timestamp(bps_event_t *event)

Since:

BlackBerry 10.0.0

Arguments:

event

The sensor event to get the timestamp of.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

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.

Returns:

The timestamp of the sensor reading.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus