upipe/uclock.h header reference
structure provided by the application to retrieve system time More
Header inclusion
Members
Type
- struct uclock
Functions
- uint64_t uclock_now(struct uclock *uclock)
- void uclock_release(struct uclock *uclock)
- struct uclock * uclock_use(struct uclock *uclock)
Description
Members detail
This macro is declared in upipe/uclock.h source file, line 42.
This macro is declared in upipe/uclock.h source file, line 31.
This struct is declared in upipe/uclock.h source file, line 46.
This struct is a structure allowing to retrieve system time.
Field | Description |
---|---|
struct urefcount *refcount; | pointer to refcount management structure |
uint64_t (*uclock_now)(struct uclock *) ; | function returning the current system time |
uint64_t uclock_now(struct uclock *uclock)
This function is declared in upipe/uclock.h source file, line 60.
This function returns the current system time.
Parameters list:
- uclock: pointer to uclock
The return value is current system time in 27 MHz ticks
void uclock_release(struct uclock *uclock)
This function is declared in upipe/uclock.h source file, line 82.
This function decrements the reference count of a uclock or frees it.
Parameters list:
- uclock: pointer to uclock
This function is declared in upipe/uclock.h source file, line 70.
This function increments the reference count of a uclock.
Parameters list:
- uclock: pointer to uclock
The return value is same pointer to uclock