Class: Yast2::SystemTime

Inherits:
Object
  • Object
show all
Defined in:
library/system/src/lib/yast2/system_time.rb

Overview

Module for handling system time

Class Method Summary collapse

Class Method Details

.uptimeFloat

Determines the current uptime

Returns:

  • (Float)

    Current uptime in seconds



35
36
37
# File 'library/system/src/lib/yast2/system_time.rb', line 35

def self.uptime
  Process.clock_gettime(Process::CLOCK_MONOTONIC)
end