---

** [tickets:#2090] base: Add timer tool to osaf_time**

**Status:** accepted
**Milestone:** 5.1.1
**Created:** Mon Oct 03, 2016 02:29 PM UTC by elunlen
**Last Updated:** Mon Oct 03, 2016 02:29 PM UTC
**Owner:** elunlen


Add a tool that can be used to timeout e.g. loops based on real time clock.
Two functions will be added:

1)
static inline void set_millis_timeout(uint64_t i_millis, struct timespec* o_ts);
This function will read the realtime clock and add i_millis milliseconds to the 
timespec struct

2)
static inline bool is_timeout(struct timespec* i_ts);
This function will read the real time clock and check if on or passed given time



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to