in reply to Converting jiffies to normal time

It seems that jiffies are just system ticks since the last reboot. This Stackoverflow question on the same topic except for Python seems to confirm that.

So, to get back to the "normal" timeformat, you would have to find the uptime of the system where these jiffies come from, and the tick rate of that system, and then divide the jiffie number by the tick rate to get the number of seconds since system reboot. If you add that to the time of last reboot, you get an epoch timestamp.

This seems to me to be a straightforward calculation, but I don't know of any module that implements it for you.

Replies are listed 'Best First'.
Re^2: Converting jiffies to normal time
by mldvx4 (Hermit) on Jan 04, 2017 at 20:19 UTC

    Thanks. I guess Unix::Uptime or Sys::Load can provide the uptime. Is one recommended over the other?

    Is there a best practice for determining tick rate? Sys::Info::Device::CPU can return the clock speed.