def uptime():
if __boottime is not None:<EOL><INDENT>return time.time() - __boottime<EOL><DEDENT>return {'<STR_LIT>': _uptime_amiga,<EOL>'<STR_LIT>': _uptime_amiga,<EOL>'<STR_LIT>': _uptime_beos,<EOL>'<STR_LIT>': _uptime_linux,<EOL>'<STR_LIT>': _uptime_osx,<EOL>'<STR_LIT>': _uptime_beos,<EOL>'<STR_LIT>': _uptime_linux,<EOL>'<STR_LIT>': _uptime_linux,<EOL>'<STR_LIT>': _uptime_linux,<EOL>'<STR_LIT>': _uptime_mac,<EOL>'<STR_LIT>': _uptime_minix,<EOL>'<STR_LIT>': _uptime_riscos,<EOL>'<STR_LIT>': _uptime_solaris,<EOL>'<STR_LIT>': _uptime_syllable,<EOL>'<STR_LIT:win32>': _uptime_windows,<EOL>'<STR_LIT>': _uptime_windows}.get(sys.platform, _uptime_bsd)() or_uptime_bsd() or _uptime_plan9() or _uptime_linux() or_uptime_windows() or _uptime_solaris() or _uptime_beos() or_uptime_amiga() or _uptime_riscos() or _uptime_posix() or_uptime_syllable() or _uptime_mac() or _uptime_osx()<EOL>
Returns uptime in seconds if even remotely possible, or None if not.