OSDN Git Service

timer: use mach_absolute_time as high resolution clock on darwin
authorJanne Grunau <j@jannau.net>
Fri, 24 Jan 2014 00:15:31 +0000 (01:15 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Sat, 8 Mar 2014 23:45:34 +0000 (00:45 +0100)
commitc708b5403346255ea5adc776645616cc7c61f078
treed36a7955d03532e3d4f1714793d4de5e7cc4a7e3
parent634d9d8b398982647b3d7160641198744901d8d8
timer: use mach_absolute_time as high resolution clock on darwin

Not guaranteed to be in nanosecond resolution. On iOS 7 the duration
of one tick is 125/3 ns which is still more than an order of magnitude
better then microseconds.

Replace decicycles with the neutral UNITS. Decicycles is strange but
tenths of a nanosecond and unspecific "deci"-ticks for mach_absolute_time
is just silly.
configure
libavutil/timer.h