[vlc-commits] vlc_tick: add a macro to convert milliseconds to msftime_t

Steve Lhomme git at videolan.org
Wed Jul 4 14:04:13 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul  4 13:21:15 2018 +0200| [e5e212e41775de96fde9ab1d2ded390617844236] | committer: Steve Lhomme

vlc_tick: add a macro to convert milliseconds to msftime_t

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5e212e41775de96fde9ab1d2ded390617844236
---

 include/vlc_tick.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/vlc_tick.h b/include/vlc_tick.h
index 31d7ee8905..6f2176aad7 100644
--- a/include/vlc_tick.h
+++ b/include/vlc_tick.h
@@ -148,6 +148,7 @@ static inline double secf_from_vlc_tick(vlc_tick_t vtk)
 typedef int64_t msftime_t;
 
 #define MSFTIME_FROM_SEC(sec)       (INT64_C(10000000) * (sec))  /* seconds in msftime_t */
+#define MSFTIME_FROM_MS(sec)        (INT64_C(10000) * (sec))     /* milliseconds in msftime_t */
 
 #if (CLOCK_FREQ % 10000000) == 0
 #define VLC_TICK_FROM_MSFTIME(msft) ((msft) * (CLOCK_FREQ / INT64_C(10000000))



More information about the vlc-commits mailing list