Method: Systemd::JournalEntry#monotonic_timestamp

Defined in:
lib/systemd/journal_entry.rb

#monotonic_timestampTime

Returns the monotonic time (time since boot) that this entry was received by the journal. This should be associated with a boot_id.

Returns:

  • (Time)


37
38
39
40
# File 'lib/systemd/journal_entry.rb', line 37

def monotonic_timestamp
  return nil unless @ctx.key?(:monotonic_ts)
  @monotonic_timestamp ||= Time.at(0, @ctx[:monotonic_ts].first)
end