![]() |
SolarCapture C Bindings
|
Functions for managing time. More...
Go to the source code of this file.
Functions | |
| void | sc_timer_expire_at (struct sc_callback *cb, const struct timespec *time) |
| Request a callback at a given time. More... | |
| void | sc_timer_expire_after_ns (struct sc_callback *cb, int64_t delta_ns) |
| Request a callback in the future. More... | |
| void | sc_timer_push_back_ns (struct sc_callback *cb, int64_t delta_ns) |
| Push the expiry time further into the future. More... | |
| int | sc_timer_get_expiry_time (const struct sc_callback *cb, struct timespec *ts_out) |
| Return the expiry time of a timer callback. More... | |
| static uint64_t | sc_ns_from_ts (const struct timespec *ts) |
| Convert a timespec struct to nanoseconds. More... | |
| static uint64_t | sc_ns_from_tv (const struct timeval *tv) |
| Convert a timeval struct to nanoseconds. More... | |
| static uint64_t | sc_ns_from_ms (uint64_t ms) |
| Convert milliseconds to nanoseconds. More... | |
| static uint64_t | sc_ns_from_us (uint64_t us) |
| Convert microseconds to nanoseconds. More... | |
Functions for managing time.
1.8.6