Browse Source

vlc_tick: add vlc_tick_from_timespec()

pull/73/head
Steve Lhomme 8 years ago
parent
commit
44f5d837ca
  1. 5
      include/vlc_tick.h

5
include/vlc_tick.h

@ -165,6 +165,11 @@ static inline vlc_tick_t vlc_tick_from_timeval(const struct timeval *tv)
return vlc_tick_from_sec( tv->tv_sec ) + VLC_TICK_FROM_US( tv->tv_usec );
}
static inline vlc_tick_t vlc_tick_from_timespec(const struct timespec *tv)
{
return vlc_tick_from_sec( tv->tv_sec ) + VLC_TICK_FROM_NS( tv->tv_nsec );
}
struct timespec timespec_from_vlc_tick(vlc_tick_t date);

Loading…
Cancel
Save