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



33
34
35
# File 'library/system/src/lib/yast2/system_time.rb', line 33

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