[][src]Function battery_ffi::battery_get_time_to_full

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

Returns battery time to full.

Returns

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

Panics

This function will panic if passed pointer is NULL