We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c7ef82 + e88cca3 commit e3b6aeaCopy full SHA for e3b6aea
src/lib.rs
@@ -920,8 +920,10 @@ impl LineEvent {
920
/// in an interrupt handler so it should be very accurate.
921
///
922
/// The nanosecond timestamp value should are captured
923
- /// using the `CLOCK_REALTIME` offsets in the kernel and
924
- /// should be compared against `CLOCK_REALTIME` values.
+ /// using the `CLOCK_MONOTONIC` offsets in the kernel and
+ /// should be compared against `CLOCK_MONOTONIC` values.
925
+ /// Note that kernel versions prior to 5.7 used
926
+ /// `CLOCK_REALTIME` offsets instead.
927
pub fn timestamp(&self) -> u64 {
928
self.0.timestamp
929
}
0 commit comments