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

posix: refactor timespec_to_timeoutms() to use tp_diff()



Use the tp_diff() macro as a means of converting an absolute timeout
with respect to a specific clock to a relative timeout, in ms.

Clamp the result between 0 and UINT32_MAX.

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