Class UpTime


  • @ThreadSafe
    public final class UpTime
    extends java.lang.Object
    Utility to read system uptime from /proc/uptime
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private UpTime()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double getSystemUptimeSeconds()
      Parses the first value in /proc/uptime for seconds since boot
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UpTime

        private UpTime()
    • Method Detail

      • getSystemUptimeSeconds

        public static double getSystemUptimeSeconds()
        Parses the first value in /proc/uptime for seconds since boot
        Returns:
        Seconds since boot