[][src]Function battery_ffi::battery_get_time_to_full

#[no_mangle]
pub unsafe extern "C" fn battery_get_time_to_full(
    ptr: *const Battery
) -> c_float

Returns battery time to full.

Returns

If battery is not charging at the moment, this function will return NaN, otherwise it will return seconds amount.

Panics

This function will panic if passed pointer is NULL