This question is not related to the pause/resume issue!
For the same event 'dmesg' shows always the same time stamp, e.g.
[31765279.760248]
However when using 'dmesg -T', for the same event it shows slightly different seconds count, e.g. calling dmesg -T | grep something | tail -1
twice results in:
[Thu Jan 29 01:12:39 2015] event details...
[Thu Jan 29 01:12:38 2015] event details...
I need to compare events with history and act on new events. However this difference makes it impossible to use a simple string compare.
As a work around I clip the seconds from the strings before I compare them. I can do it in this case since the events I filter do not happen more than once in 5 minutes.
Does anyone know why this inaccuracy happens?
uname -a => Linux (hostname) 3.5.0-45-generic #68~precise1-Ubuntu SMP Wed Dec 4 16:18:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux