Tidy up timing code a bit.
[dcpomatic.git] / src / lib / util.h
index bc5a00fc47e2a63b8d8edd3db5f18fd4f52d65c6..8d98437afafd4eace452c4695a1d27d8687657a9 100644 (file)
@@ -34,6 +34,13 @@ extern "C" {
 #include <libavfilter/avfilter.h>
 }
 
+#ifdef DVDOMATIC_DEBUG
+#include "compose.hpp"
+#define TIMING(...) _log->microsecond_log (String::compose (__VA_ARGS__), Log::TIMING);
+#else
+#define TIMING(...)
+#endif
+
 class Scaler;
 
 extern std::string seconds_to_hms (int);