]> git.sesse.net Git - nageru/blobdiff - timebase.h
Allow symlinked frame files. Useful for testing.
[nageru] / timebase.h
index dbc4402c1820d454528bd952feeb7c90ef1b8dd2..532ec86395c4fa08f08d53dbcc12daa7093ba127 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _TIMEBASE_H
 #define _TIMEBASE_H 1
 
+#include <ratio>
+
 // Common timebase that allows us to represent one frame exactly in all the
 // relevant frame rates:
 //
@@ -22,4 +24,6 @@
 // but can do at least 50 and 60 precisely, and months of streaming.
 #define COARSE_TIMEBASE 300
 
+using TimebaseRatio = std::ratio<1, TIMEBASE>;
+
 #endif  // !defined(_TIMEBASE_H)