Class: LiveF1::Packet::Sys::Timestamp
- Inherits:
-
LiveF1::Packet::Sys
- Object
- LiveF1::Packet
- LiveF1::Packet::Sys
- LiveF1::Packet::Sys::Timestamp
- Includes:
- Decryptable, Type::Timestamp
- Defined in:
- lib/live_f1/packet/sys/timestamp.rb
Overview
Individual packets don’t include any timestamp data to indicate when they happened. However, at selected (but irregular) intervals Timestamp packets are emitted containing the number of seconds since the start of the session.
Instance Attribute Summary
Attributes included from Decryptable
Attributes inherited from LiveF1::Packet
Instance Method Summary collapse
-
#number ⇒ Object
The number of seconds since the start of the session.
- #to_s ⇒ Object
Methods included from Decryptable
Methods included from Type::Timestamp
Methods inherited from LiveF1::Packet
from_source, #initialize, #inspect, #leader, #spare_bits, #spare_data
Constructor Details
This class inherits a constructor from LiveF1::Packet
Instance Method Details
#number ⇒ Object
The number of seconds since the start of the session.
13 14 15 |
# File 'lib/live_f1/packet/sys/timestamp.rb', line 13 def number data.unpack("v").first end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/live_f1/packet/sys/timestamp.rb', line 17 def to_s number end |