• Clément Bœsch's avatar
    lavu/timer.h: add Linux Perf API support · f61379cb
    Clément Bœsch authored
    Refer to "checkasm: use perf API on Linux ARM*" commit for the
    rationale.
    
    The implementation is somehow duplicated with checkasm, but so is the
    current usage of AV_READ_TIME(). Until these implementations and
    heuristics are made consistent, I don't see a way of sharing that code.
    
    Note: when using libavutil/timer.h, it is now important to include
    before any other include due to the _GNU_SOURCE requirement.
    f61379cb
timer.h 5.75 KB