[][src]Function battery_ffi::battery_get_time_to_empty

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

Returns battery time to empty.

Returns

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

Panics

This function will panic if passed pointer is NULL