pub type switch_timer_t = switch_timer;Expand description
\brief Abstract handler to a timer module
Aliased Type§
#[repr(C)]pub struct switch_timer_t {
pub interval: i32,
pub flags: u32,
pub samples: u32,
pub samplecount: u32,
pub last_samplecount: u32,
pub timer_interface: *mut switch_timer_interface,
pub memory_pool: *mut fspr_pool_t,
pub private_info: *mut c_void,
pub diff: usize,
pub start: i64,
pub tick: u64,
}Fields§
§interval: i32time interval expressed in milliseconds
flags: u32flags to control behaviour
samples: u32sample count to increment by on each cycle
samplecount: u32current sample count based on samples parameter
last_samplecount: u32§timer_interface: *mut switch_timer_interfacethe timer interface provided from a loadable module
memory_pool: *mut fspr_pool_tthe timer’s memory pool
private_info: *mut c_voidprivate data for loadable modules to store information
diff: usizeremaining time from last call to _check()
start: i64§tick: u64