Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Return the system boot time expressed in seconds since the epoch.
This is also available as psutil.BOOT_TIME.

        def get_boot_time():
    """Return the system boot time expressed in seconds since the epoch.
    This is also available as psutil.BOOT_TIME.
    """
    return _psplatform.get_system_boot_time()
        


src/p/s/psdash-0.3.0/psdash/web.py   psdash(Download)
def index():
    load_avg = os.getloadavg()
    uptime = datetime.now() - datetime.fromtimestamp(psutil.get_boot_time())
    disks = get_disks()
    users = get_users()

src/p/s/psdash-HEAD/psdash/web.py   psdash(Download)
def index():
    load_avg = os.getloadavg()
    uptime = datetime.now() - datetime.fromtimestamp(psutil.get_boot_time())
    disks = get_disks()
    users = get_users()

src/s/a/salt-HEAD/salt/modules/ps.py   salt(Download)
        # get_boot_time() has been removed in newer psutil versions, and has
        # been replaced by boot_time() which provides the same information.
        b_time = int(psutil.get_boot_time())
    if time_format:
        # Load epoch timestamp as a datetime.datetime object

src/s/a/salt-thin-HEAD/salt/modules/ps.py   salt-thin(Download)
        # get_boot_time() has been removed in newer psutil versions, and has
        # been replaced by boot_time() which provides the same information.
        b_time = int(psutil.get_boot_time())
    if time_format:
        # Load epoch timestamp as a datetime.datetime object

src/h/t/HTPC-Manager-HEAD/modules/stats.py   HTPC-Manager(Download)
                b = psutil.boot_time()
            else:
                b = psutil.get_boot_time()
            d = {}
            boot = datetime.now() - datetime.fromtimestamp(b)

src/f/l/flaskberry-HEAD/flaskberry/views/system.py   flaskberry(Download)
def index():
    uptime = datetime.now() - datetime.fromtimestamp(psutil.get_boot_time())
    return render_template('system/system.html',
            uptime = str(uptime).split('.')[0],
            load = os.getloadavg(),

src/s/i/sillyfacter-0.3.2.2/sillyfacter/os.py   sillyfacter(Download)
    host_props["cpu"] = psutil.NUM_CPUS
    dt = datetime.datetime.fromtimestamp
    host_props["boottime"] = dt(psutil.get_boot_time())
    host_props["cpu_used"] = psutil.cpu_percent(interval=1, percpu=False)
    host_props["hardwareisa"] = platform.processor()

src/s/i/sillyfacter-0.3.2.2/sillyfacter/output/json.py   sillyfacter(Download)
    fetched["had"] = {}
    dt = datetime.datetime.fromtimestamp
    boottime = dt(psutil.get_boot_time())
    # host main
    if "os" in f: