Go to the source code of this file.
|
| static vlc_tick_t | vlc_tick_from_seci (int64_t sec) |
| |
| static vlc_tick_t | vlc_tick_from_secf (double secf) |
| |
| static double | secf_from_vlc_tick (vlc_tick_t vtk) |
| |
| char * | secstotimestr (char *psz_buffer, int32_t secs) |
| | Convert seconds to a time in the format h:mm:ss. More...
|
| |
| void | date_Init (date_t *, uint32_t, uint32_t) |
| | Initialize a date_t. More...
|
| |
| void | date_Change (date_t *, uint32_t, uint32_t) |
| | Change a date_t. More...
|
| |
| void | date_Set (date_t *, vlc_tick_t) |
| | Set the date value of a date_t. More...
|
| |
| vlc_tick_t | date_Get (const date_t *) |
| | Get the date of a date_t. More...
|
| |
| void | date_Move (date_t *, vlc_tick_t) |
| | Move forwards or backwards the date of a date_t. More...
|
| |
| vlc_tick_t | date_Increment (date_t *, uint32_t) |
| | Increment the date and return the result, taking into account rounding errors. More...
|
| |
| vlc_tick_t | date_Decrement (date_t *, uint32_t) |
| | Decrement the date and return the result, taking into account rounding errors. More...
|
| |
| uint64_t | NTPtime64 (void) |
| |
◆ LAST_MDATE
| #define LAST_MDATE ((vlc_tick_t)((uint64_t)(-1)/2)) |
◆ MS_FROM_VLC_TICK
| #define MS_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / (CLOCK_FREQ / INT64_C(1000))) |
◆ MSTRTIME_MAX_SIZE
| #define MSTRTIME_MAX_SIZE 22 |
◆ SEC_FROM_VLC_TICK
| #define SEC_FROM_VLC_TICK |
( |
|
vtk | ) |
((vtk) / CLOCK_FREQ) |
◆ VLC_TICK_FROM_MS
| #define VLC_TICK_FROM_MS |
( |
|
ms | ) |
((CLOCK_FREQ / INT64_C(1000)) * (ms)) |
◆ VLC_TICK_FROM_SEC
| #define VLC_TICK_FROM_SEC |
( |
|
sec | ) |
(CLOCK_FREQ * (sec)) |
◆ vlc_tick_from_sec
| #define vlc_tick_from_sec |
( |
|
sec | ) |
|
◆ date_Change()
| void date_Change |
( |
date_t * |
p_date, |
|
|
uint32_t |
i_divider_n, |
|
|
uint32_t |
i_divider_d |
|
) |
| |
◆ date_Decrement()
◆ date_Get()
◆ date_Increment()
◆ date_Init()
| void date_Init |
( |
date_t * |
p_date, |
|
|
uint32_t |
i_divider_n, |
|
|
uint32_t |
i_divider_d |
|
) |
| |
◆ date_Move()
Move forwards or backwards the date of a date_t.
- Parameters
-
| date | to move |
| difference | value |
References date_t::date.
◆ date_Set()
◆ NTPtime64()
| uint64_t NTPtime64 |
( |
void |
| ) |
|
◆ secf_from_vlc_tick()
| static double secf_from_vlc_tick |
( |
vlc_tick_t |
vtk | ) |
|
|
inlinestatic |
◆ secstotimestr()
| char* secstotimestr |
( |
char * |
psz_buffer, |
|
|
int32_t |
i_seconds |
|
) |
| |
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.
- Parameters
-
| secs | the date to be converted |
| psz_buffer | should be a buffer at least MSTRTIME_MAX_SIZE characters |
- Returns
- psz_buffer is returned so this can be used as printf parameter.
References MSTRTIME_MAX_SIZE, secstotimestr(), and unlikely.
Referenced by secstotimestr().
◆ vlc_tick_from_secf()
| static vlc_tick_t vlc_tick_from_secf |
( |
double |
secf | ) |
|
|
inlinestatic |
◆ vlc_tick_from_seci()
| static vlc_tick_t vlc_tick_from_seci |
( |
int64_t |
sec | ) |
|
|
inlinestatic |