commit | e71c12c68f1953b290b438b7ecaa93df4fefcb9c | [log] [tgz] |
---|---|---|
author | Chris Friedt <cfriedt@tenstorrent.com> | Wed Apr 23 09:35:03 2025 -0400 |
committer | Benjamin Cabé <kartben@gmail.com> | Thu Apr 24 22:58:43 2025 +0200 |
tree | 489193d0bc9d2118b676b70857af83b00a3b386a | |
parent | 89c1f15a6e384754d777ec995c25dfbab79a5e23 [diff] |
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: Chris Friedt <cfriedt@tenstorrent.com>