Methods
getUptime()
getUptime():Promise<MonotonicDuration>
Returns the duration since the system was last booted.
Returns
Promise<MonotonicDuration>
isEmulator()
isEmulator():Promise<boolean>
Returns true if the system is running in a virtualized environment rather
than on real hardware.
The term “Emulator” is used as a general term to
include both emulators and simulators, so this property returns true for
any non-physical device, regardless of the platform.
Returns
Promise<boolean>

