def calculate_uptime(boot_time):
    return time.time() - boot_time

# =================================================================================
# ========================    UPTIME METRICS     ===============================
# =================================================================================
Calculates the uptime for the system based on its boot time.
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/builtin_monitors/windows_system_metrics.py/calculate_uptime