Skip to content

Commit e88cca3

Browse files
committed
Add kernel version note on event timestamp
1 parent d452d37 commit e88cca3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,8 @@ impl LineEvent {
922922
/// The nanosecond timestamp value should are captured
923923
/// using the `CLOCK_MONOTONIC` offsets in the kernel and
924924
/// should be compared against `CLOCK_MONOTONIC` values.
925+
/// Note that kernel versions prior to 5.7 used
926+
/// `CLOCK_REALTIME` offsets instead.
925927
pub fn timestamp(&self) -> u64 {
926928
self.0.timestamp
927929
}

0 commit comments

Comments
 (0)