OSDN Git Service

sens : add poll with params feature for time or event orientated polling
authorRazvan Stamate <razvan.c.stamate@intel.com>
Mon, 11 May 2015 12:16:33 +0000 (15:16 +0300)
committerViorel Suman <viorel.suman@intel.com>
Fri, 5 Jun 2015 13:25:20 +0000 (16:25 +0300)
commiteb8eec15c86e99da9dabd95326e9ae04c2e6d3c4
treebd32b43c8cd17d2cedb51b08e7b763e9ffb1cb29
parent0aa1bbb1ec4bc14cd8067a5fd20986f9978d620e
sens : add poll with params feature for time or event orientated polling

Allows passing time and event number as parameters to the poll
method so that the polling will gracefully stop after an event exceeds
the targeted value or the timestamp exceeds the time allocated.

ex: sens poll 1000000000 22
Will print the number of events in 1 second or 22 events

Prints time remaining for the time orientated poll functions.

Change-Id: I77df6d9a0b6d35c5250747c1d149577894961a8e
Signed-off-by: Razvan Stamate <razvan.c.stamate@intel.com>
Signed-off-by: Maria Constantin <maria.p.constantin@intel.com>
sens.c