Class Sys::Uptime
In: ext/sys/uptime.c
Parent: Object

The Uptime encapsulates various bits of uptime information

Methods

boot_time   days   dhms   hours   minutes   seconds   uptime  

Classes and Modules

Class Sys::Uptime::Error

Constants

VERSION = 0.5.3   The version of this library

Public Class methods

Returns the boot time as a Time object.

Returns the total number of days the system has been up.

Calculates and returns the number of days, hours, minutes and seconds the system has been running as a four-element Array.

Returns the total number of hours the system has been up.

Returns the total number of minutes the system has been up.

Returns the total number of seconds the system has been up.

Calculates and returns the number of days, hours, minutes and seconds the system has been running as a colon-separated string.

[Validate]