OSSingleton.getPowerSecondsLeft

Returns an estimate of the time left in seconds before the device runs out of battery. Returns -1 if power state is unknown. Note: This method is implemented on Linux, macOS and Windows.

struct OSSingleton
@nogc nothrow
long
getPowerSecondsLeft
()

Meta