Package oshi.driver.linux.proc
Class UpTime
java.lang.Object
oshi.driver.linux.proc.UpTime
@ThreadSafe public final class UpTime extends java.lang.Object
Utility to read system uptime from
/proc/uptime-
Method Summary
Modifier and Type Method Description static doublegetSystemUptimeSeconds()Parses the first value in/proc/uptimefor seconds since bootMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getSystemUptimeSeconds
public static double getSystemUptimeSeconds()Parses the first value in/proc/uptimefor seconds since boot- Returns:
- Seconds since boot
-