kolibri/utils/pskolibri/_pslinux.py
def boot_time():
    """Return the system boot time expressed in seconds since the epoch."""
    global BOOT_TIME
    path = "%s/stat" % get_procfs_path()
    with open_binary(path) as f:
        for line in f:
            if line.startswith(b"btime"):
                ret = float(line.strip().split()[1])
                BOOT_TIME = ret
                return ret
        raise RuntimeError("line 'btime' not found in %s" % path)
Return the system boot time expressed in seconds since the epoch.
Return the system boot time expressed in seconds since the epoch.
Return the system boot time expressed in seconds since the epoch .
def boot_time():
    global BOOT_TIME
    path = "%s/stat" % get_procfs_path()
    with open_binary(path) as f:
        for line in f:
            if line.startswith(b"btime"):
                ret = float(line.strip().split()[1])
                BOOT_TIME = ret
                return ret
        raise RuntimeError("line 'btime' not found in %s" % path)
def boot_time ( ) : global BOOT_TIME path = "%s/stat" % get_procfs_path ( ) with open_binary ( path ) as f : for line in f : if line . startswith ( b"btime" ) : ret = float ( line . strip ( ) . split ( ) [ 1 ] ) BOOT_TIME = ret return ret raise RuntimeError ( "line 'btime' not found in %s" % path )
Return the system boot time expressed in seconds since the epoch.
Return the system boot time expressed in seconds since the epoch .
"""Return the system boot time expressed in seconds since the epoch."""