Skip to content
Commit 241469af authored by Chris Friedt's avatar Chris Friedt Committed by Benjamin Cabé
Browse files

posix: provide timespec_to_clock_timeoutms



Provide a private internal function timespec_to_clock_timeoutms() to
complement timespec_to_timeoutms(). This new variant accepts a clock_t
parameter that allows the caller to specify which clock to use.

The original timespec_to_timeoutms() then just becomes a static inline
wrapper around the original.

Note: timespec_to_clock_timeoutms() and timespec_to_timeoutms() might
have a limited lifespan, since it might make sense to create a
common timespec manipulation library.

Signed-off-by: default avatarChris Friedt <cfriedt@tenstorrent.com>
parent fffbd766
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment