]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/timer.h
avutil/timer: Fix units for x86 after c708b5403346255ea5adc776645616cc7c61f078
[ffmpeg] / libavutil / timer.h
index 49e92fdfee44777affd217b93d58a2355ec341a9..3fff77ff1c689d0dcd9778eaebe308e316f94468 100644 (file)
 #   endif
 #endif
 
+#ifndef FF_TIMER_UNITS
+#   define FF_TIMER_UNITS "UNITS"
+#endif
+
 #ifdef AV_READ_TIME
 #define START_TIMER                             \
     uint64_t tend;                              \
@@ -76,7 +80,7 @@
             tskip_count++;                                                \
         if (((tcount + tskip_count) & (tcount + tskip_count - 1)) == 0) { \
             av_log(NULL, AV_LOG_ERROR,                                    \
-                   "%"PRIu64" UNITS in %s, %d runs, %d skips\n",          \
+                   "%"PRIu64" " FF_TIMER_UNITS " in %s, %d runs, %d skips\n",          \
                    tsum * 10 / tcount, id, tcount, tskip_count);          \
         }                                                                 \
     }