ptp4l logs with offset


Author
Message
AndygoesLogging
AndygoesLogging
New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)New Member (26 reputation)
Group: Forum Members
Posts: 5, Visits: 8
Hi, I have logs from the ptp4l service that log entries as a kernel uptime duration instead of real time or epoch duration. For example, the entries might be something like:

ptp4l[1234.567] message is here
ptp4l[1235.678] message is here

When I use ElapsedDecimal, it doesn't properly parse the seconds bit before the decimal, and I also cannot set an offset. Essentially what I'm doing is copying the log file and taking a system time of the machine at the same time so that I have the last entry very closely aligned with the datetime that I pulled the data.

I'd like to be able to convert the elapsed duration to a real DateTime stamp. Any tips on how to do that?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Login

Explore
Messages
Mentions
Search