<html><head></head><body>I'd use ms, us and ns. Nano is just weird.<br><br><div class="gmail_quote">Le 15 juin 2018 18:09:15 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">It will be handy if mtime_t has better precision than microseconds.<br>---<br> include/vlc_common.h | 9 +++++++++<br> 1 file changed, 9 insertions(+)<br><br>diff --git a/include/vlc_common.h b/include/vlc_common.h<br>index d4186883df6..3191d3ce4c8 100644<br>--- a/include/vlc_common.h<br>+++ b/include/vlc_common.h<br>@@ -316,6 +316,15 @@ static inline int64_t milli_from_vtick(mtime_t mt)<br>     return mt / (CLOCK_FREQ / 1000);<br> }<br> <br>+static inline mtime_t vtick_from_nano(int64_t nano)<br>+{<br>+    return nano / (INT64_C(1000000000) / CLOCK_FREQ);<br>+}<br>+static inline int64_t nano_from_vtick(mtime_t tck)<br>+{<br>+    return tck * INT64_C(1000000000) / CLOCK_FREQ;<br>+}<br>+<br> /**<br>  * The vlc_fourcc_t type.<br>  *</pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>