VLC
4.0.0-dev
|
Functions | |
char * | secstotimestr (char *psz_buffer, int32_t i_seconds) |
Convert seconds to a time in the format h:mm:ss. More... | |
void | date_Init (date_t *p_date, uint32_t i_divider_n, uint32_t i_divider_d) |
void | date_Change (date_t *p_date, uint32_t i_divider_n, uint32_t i_divider_d) |
vlc_tick_t | date_Increment (date_t *p_date, uint32_t i_nb_samples) |
vlc_tick_t | date_Decrement (date_t *p_date, uint32_t i_nb_samples) |
uint64_t | NTPtime64 (void) |
struct timespec | timespec_from_vlc_tick (vlc_tick_t date) |
void date_Change | ( | date_t * | p_date, |
uint32_t | i_divider_n, | ||
uint32_t | i_divider_d | ||
) |
References date_t::i_divider_den, date_t::i_divider_num, and date_t::i_remainder.
vlc_tick_t date_Decrement | ( | date_t * | p_date, |
uint32_t | i_nb_samples | ||
) |
References CLOCK_FREQ, date_t::date, date_t::i_divider_den, date_t::i_divider_num, date_t::i_remainder, unlikely, and VLC_TICK_INVALID.
vlc_tick_t date_Increment | ( | date_t * | p_date, |
uint32_t | i_nb_samples | ||
) |
void date_Init | ( | date_t * | p_date, |
uint32_t | i_divider_n, | ||
uint32_t | i_divider_d | ||
) |
References date_t::date, date_t::i_divider_den, date_t::i_divider_num, date_t::i_remainder, and VLC_TICK_INVALID.
uint64_t NTPtime64 | ( | void | ) |
References TIME_UTC, timespec_get(), timespec::tv_nsec, and timespec::tv_sec.
Referenced by date_Get(), vlc_rand_bytes(), and vlc_sdp_Start().
char* secstotimestr | ( | char * | psz_buffer, |
int32_t | secs | ||
) |
Convert seconds to a time in the format h:mm:ss.
This function is provided for any interface function which need to print a time string in the format h:mm:ss date.
secs | the date to be converted |
psz_buffer | should be a buffer at least MSTRTIME_MAX_SIZE characters |
References MSTRTIME_MAX_SIZE, secstotimestr(), and unlikely.
Referenced by input_title_GetName(), secstotimestr(), and vlc_player_osd_Position().
struct timespec timespec_from_vlc_tick | ( | vlc_tick_t | date | ) |
References CLOCK_FREQ, lldiv(), and NS_FROM_VLC_TICK.
Referenced by vlc_atomic_timedwait(), vlc_tick_sleep(), and vlc_tick_wait().